Little help with KickWithMessage
#3

You're not using the function.
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;
}
Reply


Messages In This Thread
Little help with KickWithMessage - by KyLeBlaK - 22.10.2014, 15:11
Re: Little help with KickWithMessage - by Rudy_ - 22.10.2014, 15:13
Re: Little help with KickWithMessage - by Stinged - 22.10.2014, 15:15
Re: Little help with KickWithMessage - by KyLeBlaK - 22.10.2014, 15:29

Forum Jump:


Users browsing this thread: 2 Guest(s)