09.08.2011, 09:29
What is your admin system ? I can try help.
Try this :
Try this :
pawn Код:
CMD:kick(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new kicked, reason[50];
if(sscanf(params, "us[50]", kicked, reason)) return SendClientMessage(playerid, 0x00FF00AA, "USAGE: /kick [ID] [Reason]");
if(kicked == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0x00FF00AA, "Invalid ID");
new message[128];
format(message, sizeof(message), "AdmCMD: %s was kicked by %s, reason: %s", ReturnPlayerName(kicked), ReturnPlayerName(playerid), reason);
SendClientMessageToAll(0x00FF00AA, message);
Kick(kicked);
}
return 1;
}