Jump to content

Iulian1337

Membru
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutru

About Iulian1337

  • Rank
    Membru

Profile Information

  • Sex
    Masculin
  • Name in game
    Johnny
  • Level of knowledge
    Experimentat

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. CMD:cratesforall(playerid) { if(PlayerInfo[playerid][Admin] < 6) return SendClientMessage(playerid, -1, "Nu esti administrator pentru a folosi aceasta comanda!"); new String[128]; format(String, sizeof(String), "(( %s a dat tututor cate un crates [modifica tu crates] ))", PlayerName(playerid)); SendClientMessageToAll(-1, String); PlayerInfo[pCrates][2] ++; return true; }
  2. PlayerInfo[Crates] ++; Defineste (PlayerInfo) cum ai tu trecut in gm ala i = selectia de playeri online (toti) Crates = defineste cu crates care trebuie sa le trimita jucatorilor ++ (da un crates jucatorilor / +1) += 1; = (la fel ca si ++);
  3. YCMD:rainbowveh(playerid, params[], help) { if(PlayerInfo[playerid][pPremiumAccount] == 0) return SCM(playerid, COLOR_RED, "Nu detii cont premium!"); if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_RED, "Nu te afli in niciun vehicul!"); TimerRainbow[playerid] = SetTimerEx("RainbowChange", 200, true, "i", playerid); return true; } iti recomand sa faci o variabila pentru inchidere si deschidere (sa nu se buguiasca timerul cand dai de mai multe ori /rainbow) [Rainbow] La playerdata YCMD:rainbowveh(playerid, params[], help) { if(PlayerInfo[playerid][pPremiumAccount] == 0) return SCM(playerid, COLOR_RED, "Nu detii cont premium!"); if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_RED, "Nu te afli in niciun vehicul!"); if(PlayerInfo[playerid][RainBow] == 0) TimerRainbow[playerid] = SetTimerEx("RainbowChange", 200, true, "i", playerid); else if(PlayerInfo[playerid][Rainbow] == 1) KillTimer(TimerRainbow[playerid]); return true; }
  4. CMD:createsforall(playerid) { foreach(new i : Player) { //variabila ta Users[crates] ++ sau += 1; SendClientMessageToAll(-1, "Administratorul X a dat tuturor playeriilor online +1 crates"); } return true; }
  5. for(new i = 0; i < MAX_PLAYERS; i++) { PlayerInfo[p_Crates] ++; } sau daca ai foreach foreach(new i : Player) { PlayerInfo[p_Crates] ++; }
  6. enum yourdata { banuri, kickuri } new player[MAX_PLAYERS][yourdata]; enum raportsys { maxbans, maxkicks, raportulpeziuadeazi } new raport[raportsys]; // cmd /ban if(player[playerid][banuri] == raport[maxbans]) return true; // raport complet else player[playerid][banuri]++; // raport incomplet // cmd /kick if(player[playerid][kickuri] == raport[maxkicks]) return true; // raport complet else player[playerid][kickuri]++; // raport incomplet stock calculateraport() // calculeaza raport (from db) { new total = 0; total = (raport[maxbans] + raport[maxkicks]); return total; } stock calculateplayerraport(playerid) // calculeaza raport (player account) { new total = 0; total = (player[playerid][banuri] + player[playerid][banuri]); return total; } CMD:raport(playerid) { new String[1024]; //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ format(String, sizeof(String), "Raport System\n\ Bans: %d/%d\n\ Kicks: %d/%d\n\ Total raport (Check Raport): %d/%d", player[playerid][kickuri], raport[maxkicks], player[playerid][kickuri], raport[maxkicks], calculateraport(playerid), calculateraport()); ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Raport System", String, "Close", ""); return true; } descurca-te eu ti-am facut ce trebuia.
  7. stock PN(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; } la OnPlayerText adaugi asta, prin ultimele randuri, nu stiu cum ai tu acolo... new String[512]; //------------------------------------------------------------------------------ if(Player[playerid][Admin] < 7) { format(String, sizeof(String), "Scripter %s: %s", PN(playerid), text); SendClientMessageToAll(-1, String), SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 40.0, 4000); return false; }
  8. /* urmatoarele: - in baza de date trebuie adaugat: ( => `ClanName` varchar(42) NOT NULL DEFAULT 'None' <= ) ( => `ClanTag` varchar(42) NOT NULL DEFAULT 'None' <= ) adaugi la playerdata sau cum ai definit enum-ul ClanTag[24], ClanName[32] ... */ stock PN(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; } stock LoadPlayerClan(playerid) // Incarca detaliile { if(Player[playerid][ClanID] != 0) { new Query[128], cTag[24], cName[32]; //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ format(Query, sizeof(Query), "SELECT * FROM `Users` WHERE `Name` = '%s' LIMIT 1", PN(playerid)); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ new Cache: result = mysql_query(SQL, Query); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ cache_delete(result); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ cTag = cache_get_field_content_int(0, "ClanTag", SQL); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ cName = cache_get_field_content_int(0, "ClanName", SQL); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ format(Player[playerid][ClanTag], 24, "%s", cTag); format(Player[playerid][ClanName], 32, "%s", cName); } return true; } stock LoadPlayerClanName(playerid) { new String[128]; // if(strfind(Player[playerid][ClanName], "None", true) == -1) { format(String, sizeof(String), "%s", Player[playerid][ClanName]); } else { String = ""; } return String; } stock LoadPlayerClanTag(playerid) { new String[128]; // if(strfind(Player[playerid][ClanTag], "None", true) == -1) { format(String, sizeof(String), "%s", Player[playerid][ClanTag]); } else { String = ""; } return String; } stock SavePlayerClan(playerid) { new Query[128]; //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ if(Player[playerid][ClanID] != 0) { format(Query, sizeof(Query), "UPDATE `Users` SET `ClanName` = '%s', `ClanTag` = '%s' WHERE `Name` = '%s'", Player[playerid][ClanName], Player[playerid][ClanTag], PN(playerid)); mysql_tquery(SQL, Query, "", ""); } }
  9. Iulian1337

    am o eroare

    Descarca plugin-ul nativechecker
  10. interest = (PlayerInfo[pAccount]/20)*(tmpintrate); sau iti poti face un randomex sa ofere un salariu dupa cum doresti tu. (scuze, nu ma pricep la modurile RPG) Adaugi asta undeva unde nu incurca in special jos de tot (aproape de sfarsitul liniilor ale gm-ului) randomEx(min, max) return (random((max - min)) + min); Bani = randomEx(5000, 10000000) // 5000 = de unde incepe suma, 10000000 pana unde poate ajunge suma! exemplu new Bani = randomEx(5000, 10000000); PlayerInfo[pAccount] += Bani;
  11. Salutare SA-MP.ro, Salutare prietenii! M-am gandit sa construiesc un gamemode de tip Stunt, folosind ideile voastre si propunerilor voastre! Pentru moment am construit lucrurile esentiale unui gm de tip Stunt. Adica am adaugat urmatoarele sisteme. Functiile MySQL r39-6 (Database, Stocare in baza de date, Salvare statistici s.a.m.d) Admin System format din multe comenzii pentru admini, mai precis un system mai sigur de adminat, si cu o protectie facuta de catre mine la comenzi pentru a evita abuzarea de admin (gen Ban All, Kick All s.a.m.d) [Ma refer la acei jucatorii care vor abuza de comenzile astea /ban, /kick ... in scopuri rele) VIP System format din doua nivele VIP si VIP Gold (Pe viitor sau in V2 voi modifica system-ul de VIP si il voi face mai complex ca acum) https://imgur.com/a/z1uKg Gang System este format din multe teritorii, multe comenzii pentru membrii de ganguri. si cu un system complex de capturare a gangurilor inamice (Pe viitor voi face un update la acest system) https://imgur.com/a/GETm3 Comenziile server-ului (Sunt multe, nu stau sa le precizez pe toate) https://imgur.com/a/30f34 System de cadouri (Odata la 30 de minute) https://imgur.com/a/qOHQI ShopKey (Generale de key-uri pentru a primi statistici si altele) https://imgur.com/a/8rCJK Shop System (Shop de pe server, atat cat si pe panel(Soon)) https://imgur.com/a/i3fMp Trade System (Inca nu l-am terminat!) https://imgur.com/a/xgMYf Alte poze: https://imgur.com/a/BY6TA Iar PONT-ul ala de jos cu spatiul care a depasit box-ul l-am reparat! -- Va astept parerile si ideile pentru server, doresc sa il fac cat mai unic si cat mai distractiv! --
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.