26.10.2009, 04:21
pawn Код:
if(strcmp( "/ban",cmdtext ,true,4) == 0)
{
if(IsPlayerAdmin(playerid))
{
Ban(playerid);
new string[256];
new Banned[MAX_PLAYER_NAME];
GetPlayerName(playerid,Banned,sizeof(Banned));
format(string,sizeof(string),"%s tried to ban someone and got himself/herself banned",Banned);
SendClientMessageToAll(COLOR,string);
}
else
{
SendClientMessage(playerid,Color,"Youre not an Rcon Admin");
}
return 1;
}