Jump to content

DrakeBusteR

Membru
  • Posts

    3
  • Joined

  • Last visited

    Never

DrakeBusteR's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. De udne stii tu? SI nu cred ca trebuie sa te bagi tu eu vreau doar sa rezolv acele 2 warninguri. Daca nu stii stai pe bara
  2. E:\Server SaMp\RPGaminG\RPGaminG-PrahovA\pawno\include\streamer.inc(400) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") E:\Server SaMp\RPGaminG\RPGaminG-PrahovA\gamemodes\sZn.pwn(116) : warning 201: redefinition of constant/macro (symbol "COLOR_RED") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Header size: 12228 bytes Code size: 2245568 bytes Data size: 6144800 bytes Stack/heap size: 16384 bytes; estimated max. usage=4843 cells (19372 bytes) Total requirements: 8418980 bytes 2 Warnings. Imi da aceste 2warninguri
  3. Cum fac ca adminul 1 sa nu poata da ban la adminul 1338? Sau mai bine zis adminul mic nu poate da ban la un admin mai mare? Please help. Uitati aici comanda /ban daca va este de ajutor if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } new year, month,day; getdate(year, month, day); format(string,128,"AdmCmd: %s was banned by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result), month, day, year); SendClientMessageToAll(COLOR_RED,string); BanLog(string); PlayerInfo[giveplayerid][pAdmin] = PlayerInfo[giveplayerid][pLevel]; PlayerInfo[giveplayerid][pLevel] = -999; format(string, sizeof(string), "Information: %s was banned by %s, reason: %s\nReclamation: rpgaming.forumz.Ro", giveplayer, sendername, result); ShowPlayerDialog(giveplayerid, 0, DIALOG_STYLE_MSGBOX, "You have been Banned", string, "Ok", "Quit"); Ban(giveplayerid); return 1; } }//not connected } else { format(string, sizeof(string), "%d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
×
×
  • 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.