15.03.2009, 22:00
i really need this fixed Fast, theres people on my server getting banned right and left
heres the code:
if they type /bank (id) it just bans them
i need that fixed please and thx!
heres the code:
Код:
if(strcmp("/ban", cmdtext, true, 4) == 0)
{
if(Level[playerid] == 0) return 0;
if(IsLoggedIn[playerid] == 0) return 0;
if(strlen(cmdtext[5]) == 0) return SendClientMessage(playerid, red, "You did not enter an ID");
new cmdname[MAX_PLAYER_NAME];
GetPlayerName(playerid, cmdname, sizeof(cmdname));
GetPlayerName(strval(cmdtext[5]), cmdname, sizeof(cmdname));
format(string, sizeof(string), "*** BAN: %s (%d) [ADMIN BAN] Banned From The Server By An Admin.", cmdname,strval(cmdtext[5]));
SendClientMessageToAll(COLOR_PINK, string);
Ban(strval(cmdtext[5]));
return 1;
}
i need that fixed please and thx!

