/kick command help plz.
#9

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;
}
Reply


Messages In This Thread
/kick command help plz. - by mittukuttan - 10.01.2013, 11:17
Re: /kick command help plz. - by Threshold - 10.01.2013, 11:25
Re: /kick command help plz. - by kaisersouse - 10.01.2013, 13:25
Re: /kick command help plz. - by Fabio11 - 10.01.2013, 13:30
Re: /kick command help plz. - by mittukuttan - 11.01.2013, 03:15
Re: /kick command help plz. - by Threshold - 11.01.2013, 03:35
Re: /kick command help plz. - by mittukuttan - 11.01.2013, 03:36
Re: /kick command help plz. - by mittukuttan - 11.01.2013, 07:53
Re: /kick command help plz. - by venomlivno8 - 11.01.2013, 08:03
Re: /kick command help plz. - by mittukuttan - 11.01.2013, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)