01.03.2013, 17:11
try this. hope it helps
Cheers
PDS2012
pawn Код:
COMMAND:kick(playerid, params[])
{
new
id,
reason[128]
;
if(IsPlayerAdmin(playerid) || PInfo[playerid][pAdmin] < 0) return SendPM(playerid, -1,"You're Not Authorized to use this command");
if(sscanf(params, "us[128]", id,reason)) return SendPM(playerid, COLOR_GRAD2, "/kick [id] [reason]");
if(id == INVALID_PLAYER_ID) return SendPM(playerid, COLOR_GRAD2, "The player is disconnected");
format(string,sizeof(string),"AdmWrn: %s[%d] was kicked by %s[%d] reason: "COL_YELLOW"%s",PlayerName(id),id,PlayerName(playerid),playerid,reason);
SendClientMessageToAll(COLOR_RED,string);
Kick(id);
return 1;
}
PDS2012