02.08.2011, 19:38
pawn Код:
if (strcmp(cmdtext, "/banip", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new string[200], pname[28];
GetPlayerName(playerid, pname, sizeof(pname));
format(string,sizeof(string),"%s banned the Ip %s",pname,cmd);
SendClientMessageToAll(0xDEEE20FF, string);
SendRconCommand("banip");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "You are not admin");
return 1;
}
}