Could this work? please answer!
#5

pawn Код:
CMD:ban(playerid, params[])
{
    //Is Player Admin script here
    {
        new pID, Msg[128];
        if(sscanf(params, "us[60]", pID, params)) return SendClientMessage(playerid, COLOR_RED, "* Usage: /Ban < Player ID > < Reason >");

        if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "That user is not connected!");

        format(Msg, sizeof(Msg), "Admin: %s(%d) has banned: %s(%d) for: %s", pName(playerid), playerid, pName(pID), pID, params);
        SendClientMessageToAll(COLOR_GREY, Msg);

        return BanEx(pID, "Admin Ban!");
    }
    else return SendClientMessage(playerid, COLOR_RED, "This command is for admin lvl 3 + only!");
}
Reply


Messages In This Thread
Could this work? please answer! - by ricardo178 - 14.03.2011, 12:55
Re: Could this work? please answer! - by Macluawn - 14.03.2011, 13:01
Re: Could this work? please answer! - by HyperZ - 14.03.2011, 13:02
Re: Could this work? please answer! - by Macluawn - 14.03.2011, 13:04
Re: Could this work? please answer! - by Markx - 14.03.2011, 13:05
Re: Could this work? please answer! - by HyperZ - 14.03.2011, 13:05
Re: Could this work? please answer! - by ricardo178 - 14.03.2011, 13:11
Re: Could this work? please answer! - by ricardo178 - 14.03.2011, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)