YCMD help
#9

pawn Код:
YCMD:ban(playerid, params[], help)
{
    if(userData[playerid][Admin_Level] < 4) return SendClientMessage(playerid, 0xFFFFFF, "You aren't authorized to use this command."
    if (help)
    {
        return SendClientMessage(playerid, 0xFF0000AA, "Bans another player.");
    }
    else
    {
        new
            pid,
            reason[32];
        if (sscanf(params, "uS[32]", pid, reason))
        {
            return SendClientMessage(playerid, 0xFF0000AA, "Parameters: <playerid/name> [reason]");
        }
        if (reason[0])
        {
            SendClientMessage(pid, 0xFF0000AA, "You have been banned.  Reason:");
            SendClientMessage(pid, 0xFF0000AA, reason);
        }
        else
        {
            SendClientMessage(pid, 0xFF0000AA, "You have been banned.");
        }
        Ban(pid);
    }
    return 1;
}
Reply


Messages In This Thread
YCMD help - by semaj - 11.06.2013, 21:23
Re: YCMD help - by RALL0 - 11.06.2013, 21:28
Re: YCMD help - by semaj - 11.06.2013, 21:37
Re: YCMD help - by RALL0 - 11.06.2013, 21:45
Re: YCMD help - by semaj - 11.06.2013, 21:47
Re: YCMD help - by RALL0 - 11.06.2013, 22:08
Re: YCMD help - by semaj - 11.06.2013, 22:27
Re: YCMD help - by RALL0 - 11.06.2013, 22:31
Re: YCMD help - by semaj - 11.06.2013, 22:39
Re: YCMD help - by semaj - 11.06.2013, 22:52

Forum Jump:


Users browsing this thread: 2 Guest(s)