24.12.2014, 15:53
pawn Код:
CMD:kick(playerid,params[])
{
new id;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE , "SERVER: Unknown Command");
if(sscanf(params, "d", id))return SendClientMessage(playerid, 0xFF0000FF, "{FF0000}AdmUsage: {15FF00}/Kick <Playerid>");
else if(!IsPlayerConnected(id))return SendClientMessage(playerid, 0xFF0000FF, "Invalid Player ID");
else
{
Kick(id);
}
return 1;
}