11.01.2013, 08:03
Just do this...
pawn Код:
CMD:kick(playerid, params[])
{
new pID,
aName[MAX_PLAYER_NAME], // Name of the admin that kicked player
pName[MAX_PLAYER_NAME], // Name of the kicked player
reason[64],
kickstring[256];
if(sscanf(params, "us[64]", pID, reason) return SCM(playerid, COL_WHITE, " USAGE:/kick [playerid/name] [reason]");
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COL_RED, " You are not allowed to do that!");
}
else
{
format(kickstring, sizeof(kickstring), "AdmCmd:%s has kicked %s for : %s", aName, pName, reason);
SendClientMessageToAll(COL_RED, kickstring);
Kick(pID);
}
return 1;
}