22.10.2014, 15:15
You're not using the function.
Change your code to this:
Change your code to this:
pawn Код:
CMD:kick(playerid, params[])
{
if (pInfo[playerid][Adminlevel] < 2) return 0;
new targetid, reason[64], string[128], pID;
if(sscanf(params, "us[64]", targetid, reason)) return SendClientMessage(playerid, -1, "/kick <ID> <Reason>");
if(pID == IPI) return SCM(playerid, red, "Player is not connected!");
format(string, sizeof(string), "%s %s has kicked %s reason: %s ", AdminLevelName(playerid), GetName(playerid), GetName(targetid), reason);
KickWithMessage(playerid, string);
return 1;
}