05.01.2014, 08:12
pawn Code:
CMD:kick(playerid, params[])
{
if(IsPlayerAdmin(playerid)) // I put here so the player needs to be RCON Admin to do it.
{
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "Syntax: /kick [PlayerName/ID]");
Kick(targetid);
}
else return SendClientMessage(playerid, COLOR_RED, "Nope :3"); //Sending the person message that he isnt allowed to do that.
return 1;
}