18.05.2011, 08:03
Код:
dcmd_kick(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: /kick <id>"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Wrong player id"); if(id == playerid) return SendClientMessage(playerid,-1,"You can't kick yourself"); Kick(id); SendClientMessage(playerid,-1,"Player kicked"); return 1; }