Jump to content

TheBusiness

Membru
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • Level of knowledge
    Avansat

Recent Profile Visitors

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

TheBusiness's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Collaborator
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. Sau poti face mai multe puncte de spawn si cand playerul se spawneaza sa le iei random. Asa poti sa reduci acest blocaj.
  2. CMD:leaders(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); SendClientMessage(playerid, COLOR_GREEN, "-------Lideri Online------"); new string[128],name[30],afktext[10]; foreach(new i : Player) { if(PlayerInfo[i][pLeader] > 0 && PlayerInfo[i][pAdmin] < 3) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "{ff0000}Lider la: {000066}%s: {66ff33}%s {ccff33}[ID: %d] %s", DynamicFactions[PlayerInfo[i][pMember]][fName], name, i, afktext); SendClientMessage(playerid, COLOR_WHITE, string); } } SendClientMessage(playerid, COLOR_GREEN, "----------------------------------"); return 1; } Ok, am facut. Ce am modificat? 1. Ti-am adaugat conditia ca daca player-ul respectiv are admin 3 sau peste 3 sa nu mai il afiseze, indiferent ca e lider sau nu. (Daca vrei sa nu iti afiseze admin 3, ci doar peste 3 pui PlayerInfo[pAdmin] <= 3 ) 2. Ti-am rezolvat problema la PlayerInfo, am adaugat parametrul pentru id pentru ca nu il aveai.
  3. function Update(playerid, bazadedate[], gamemode, type) { new query[500]; switch(type) { case 1: mysql_format(handle, query, sizeof(query), "UPDATE `users` SET `%s` = '%d' WHERE `name`= '%e'", bazadedate, gamemode, GetPName( playerid )); case 2: mysql_format(handle, query, sizeof(query), "UPDATE `users` SET `%s` = '%f' WHERE `name`= '%e'", bazadedate, gamemode, GetPName( playerid )); case 3: mysql_format(handle, query, sizeof(query), "UPDATE `users` SET `%s` = '%s' WHERE `name`= '%e'", bazadedate, gamemode, GetPName( playerid )); } mysql_query(handle, query); return 1; } Ce era gresit? la functia ta acest "type" nu era inregistrat corect, era "tip", si cand faceai switch nu stia de unde sa inceapa.
  4. CMD:leaders(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); SendClientMessage(playerid, COLOR_GREEN, "-------Lideri Online------"); new string[128],name[30],afktext[10]; foreach(new i : Player) { if(PlayerInfo[pLeader] > 0 && i||playerid) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "{ff0000}Lider la: {000066}%s: {66ff33}%s {ccff33}[ID: %d] %s", DynamicFactions[PlayerInfo[pMember]][fName], name, i, afktext); SendClientMessage(playerid, COLOR_WHITE, string); } } SendClientMessage(playerid, COLOR_GREEN, "----------------------------------"); return 1; } Poftim, cu aceasta comanda nu te poti vedea pe tine la lideri, doar altii te pot vedea. Legat de partea cu admin +3 nu am inteles la ce te referi Ce am facut? Am adaugat o conditie in plus ca "i" (Playerul cautat) sa nu fie acelasi cu tine (playerid) Edit: Mi se pare ciudat PlayerInfo-ul tau, adica unde e parametrul id?
  5. Nu e de la sistemul de trivia, e de la sistemul de anti-hack money din gamemode. Baga si tu sistemul in gamemode, nu il lasa in filterscript.
  6. Din ce cred si vad eu, tie acel id iti ia numarul slotului masinii, iar functia SpawnVeh traducea numarul slotului in id-ul masinii. Iar tu cand incerci sa dai despawn, tu dai despawn la un id prost. (numarul slotului) Problema e ca ar trebui sa ma uit in functia SpawnVeh de la tine din GM.
  7. Verifica sa ai in folderul Plugins toate fisierele cu extensia ".dll", daca nu le ai, le descarci de pe net. Apoi intrii in server.cfg si modifici fiecare nume de plugin (stergi extensiile .so)
  8. new numeplayer[MAX_PLAYER_NAME]; GetPlayerName (playerid, numeplayer, MAX_PLAYER_NAME); //Acum in textdraw pui variabila 'numeplayer'
  9. Pare un Survival Game. Bravo, o idee minunata.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.