'/ban' shuts down the compiler!
#1

Here the command...

pawn Код:
if(strcmp(cmdtext, "/ban", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_PURPLE, "USAGE: /ban [playerid] [reason]");
return 1;
}
new playa = strval(tmp);
new string[256];
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playa, COLOR_RED, "You were banned from the server!");
format(string, sizeof(string), "[!] AdmCmd: %s Banned %s, Reason: %s",sendername, giveplayer, result);
SendClientMessageToAll(COLOR_ADMIN, string);
Ban(playa);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "[!] You cannot use this command!");
}
return 1;
}
When I try to compile, it closes down the compiler
Reply


Messages In This Thread
'/ban' shuts down the compiler! - by Antonio [G-RP] - 07.08.2009, 20:52
Re: '/ban' shuts down the compiler! - by Dark_Kostas - 07.08.2009, 21:27
Re: '/ban' shuts down the compiler! - by Antonio [G-RP] - 07.08.2009, 22:14

Forum Jump:


Users browsing this thread: 1 Guest(s)