How to script ban and kick command?
#3

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;
}
Reply


Messages In This Thread
How to script ban and kick command? - by Hitman-97- - 18.05.2011, 07:19
Re: How to script ban and kick command? - by BloodMaster - 18.05.2011, 08:03
Re: How to script ban and kick command? - by Hitman-97- - 18.05.2011, 10:06
Re: How to script ban and kick command? - by DeadAhead - 18.05.2011, 10:40
Re: How to script ban and kick command? - by Hitman-97- - 19.05.2011, 07:15
Re: How to script ban and kick command? - by xalith - 19.05.2011, 07:49

Forum Jump:


Users browsing this thread: 1 Guest(s)