18.05.2011, 10:06
and the same for ban?
pawn Код:
dcmd_ban(playerid,params[]){
new id;
if(IsPlayerAdmin3(playerid)) return SendClientMessage(playerid,-1,"You are not admin");
if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"Use: /ban <id>");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Wrong player id");
if(id == playerid) return SendClientMessage(playerid,-1,"You can't ban yourself");
ban(id);
SendClientMessage(playerid,-1,"Player banned");
return 1;
}