12.01.2013, 09:24
pawn Код:
CMD:kick(playerid, params[])
{
new pID, aName[MAX_PLAYER_NAME], reason[64], kickstring[128],pName[MAX_PLAYER_NAME];
if(sscanf(params, "is[64]", pID, reason)) return SendClientMessage(playerid, -1, " USAGE:/kick [playerid/name] [reason]");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0066C8, " You are not allowed to do that!");
GetPlayerName(playerid,aName,MAX_PLAYER_NAME);
GetPlayerName(pID,pName,MAX_PLAYER_NAME); format(kickstring, sizeof(kickstring), "AdmCmd:%s has kicked %s for : %s", aName, pName, reason);
SendClientMessageToAll(0xFF0066C8, kickstring);
Kick(pID);
return 1;
}