/ban CMD
#6

pawn Код:
CMD:ban(playerid, params[])
{
    new pID, reason[68], msg[128], name[MAX_PLAYER_NAME], bannername[MAX_PLAYER_NAME];
    if(sscanf(params, "us", pID, reason)) return SendClientMessage(playerid, 0xDF0000FF, "USAGE: /ban [playerid] [reason]");
    {
        GetPlayerName(pID, name, sizeof(name));
        GetPlayerName(pID, bannername, sizeof(bannername));
        format(msg, sizeof(msg), "[AdmCmd]: %s has been banned by %s, reason: %s", name, bannername, reason);
        SendClientMessageToAll(0xDF0000FF, msg);
        BanEx(pID, reason);
    }
    return 1;
}
Reply


Messages In This Thread
/ban CMD - by Louris - 20.11.2012, 15:55
Re: /ban CMD - by vernz - 20.11.2012, 15:56
Re: /ban CMD - by Louris - 20.11.2012, 16:00
Re: /ban CMD - by tyler12 - 20.11.2012, 16:02
Re: /ban CMD - by vernz - 20.11.2012, 16:02
Re: /ban CMD - by Anthony © - 20.11.2012, 16:08
Re: /ban CMD - by gtakillerIV - 20.11.2012, 16:09
Re: /ban CMD - by Louris - 20.11.2012, 16:54
Re: /ban CMD - by Bicentric - 20.11.2012, 16:59
Re: /ban CMD - by Louris - 20.11.2012, 17:08

Forum Jump:


Users browsing this thread: 4 Guest(s)