Admin Announce Command
#2

pawn Код:
Par dйfaut Admin Announce Command
Code:

CMD:adminann(playerid, params[])
{
    if(PlayerInfo[playerid][pAdminLevel] >= 2)
    {
        if(!params[8])
        {
        new str[128];
        SendClientMessageToAll(COLOR_LIGHTBLUE, "|~~~~~~~~~~ Admin Announcement~~~~~~~~~~|");
        format(str, sizeof(str), "%s %s", str, params[0]);
        SendClientMessageToAll(COLOR_GREEN, str);
                SendClientMessageToAll(COLOR_LIGHTBLUE,"|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|");
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "USAGE: /adminann [text]");
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "You are not an admin");
        return 1;
    }
    return 0;
    }
Reply


Messages In This Thread
Admin Announce Command - by StuartD - 31.12.2012, 22:21
Re : Admin Announce Command - by [HRD]Mar1 - 31.12.2012, 22:45
Re: Admin Announce Command - by StuartD - 31.12.2012, 22:57
Re: Admin Announce Command - by CrazyJin - 31.12.2012, 23:15
Re: Admin Announce Command - by Threshold - 31.12.2012, 23:21
Re: Admin Announce Command - by StuartD - 31.12.2012, 23:40
Re: Admin Announce Command - by CrazyJin - 31.12.2012, 23:43
Re: Admin Announce Command - by Threshold - 01.01.2013, 10:13

Forum Jump:


Users browsing this thread: 5 Guest(s)