SOLVED
#3

pawn Код:
forward Delaykick(playerid);
public Delaykick(playerid)
{
    Kick(playerid);
}
CMD:kick(playerid,params[])
{
new id,reason[100],msg[128],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
if(PlayerInfo[playerid][Admin] < 1) return SendMessage(playerid,COLOR_TEAM2,"You can't use this command","Ban khong the su dung lenh nay");
if(sscanf(params,"us[100]",id)) return SendMessage(playerid,COLOR_TEAM2,"USAGE:/kick [id]","SuDung:/kick [id] [reason]");
if(!IsPlayerConnected(id)) return SendMessage(playerid,COLOR_TEAM2,"Player not connect","Nguoi choi khong online");
format(msg,sizeof(msg),"%s has been kicked by administration REASON: %s",pname,reason);
SendClientMessageToAll(-1,msg);
SetTimerEx("DelayKick",500,false,"i",playerid);
return 1;
}
Reply


Messages In This Thread
SOLVED - by Toxik - 03.11.2014, 06:49
Re: Help me here! - by DaniceMcHarley - 03.11.2014, 06:50
Re: SOLVED - by Quickie - 03.11.2014, 07:01
Re: SOLVED - by Runn3R - 03.11.2014, 08:07
Re: SOLVED - by Blast3r - 03.11.2014, 08:34
Re: SOLVED - by Runn3R - 03.11.2014, 09:36
Re: SOLVED - by Toxik - 04.11.2014, 12:22
Re: SOLVED - by Runn3R - 04.11.2014, 12:33
Re: SOLVED - by Glossy42O - 04.11.2014, 12:37
Re: SOLVED - by Runn3R - 04.11.2014, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)