27.07.2014, 14:29
You answered your own question.
Here I'll make you a quick CMD.
If I am missed something I am sorry as I said it's a quick CMD.
pawn Код:
if(IsPlayerAdmin(changethistoyourTARGETvariable)) return 0;
Here I'll make you a quick CMD.
pawn Код:
CMD:ban(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
new target;
if(sscanf(params,"u",target)) return SendClientMessage(playerid,-1,"/ban id/partofname"); // Checking if the TARGET is a valid player.
if(!IsPlayerConnected(target)) return 0; // If the target isn't online this command will stop.
if(IsPlayerAdmin(target)) return SendClientMessage(playerid,-1,"You can't ban an RCON administrator."); // If the entered ID is an RCON logged in admin you can't ban him.
if(target == playerid) return SendClientMessage(playerid,-1,"You can't ban yourself.");
Ban(target);
}
}

