Announcement CMD
#3

An announcement with "SendClientMessages" is too bored, try this out:

pawn Код:
CMD:ann(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2) //change this to your own admin-variable
    {

            new Announce[50];
            if(!sscanf(params, "s[50]",Announce))
            {
                GameTextForAll(Announce,5000,3);
            }
            else SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /ann <text>");
           
    }
    else SendClientMessage(playerid,COLOR_RED,"ERROR: You must be level 1 to use this command!");
    return 1;
}
Reply


Messages In This Thread
Announcement CMD - by Starfire - 28.04.2012, 16:14
Re: Announcement CMD - by Rudy_ - 28.04.2012, 16:16
Re: Announcement CMD - by Twisted_Insane - 28.04.2012, 16:18
Re: Announcement CMD - by doreto - 28.04.2012, 16:20
Re: Announcement CMD - by Rudy_ - 28.04.2012, 16:20
Re: Announcement CMD - by Starfire - 28.04.2012, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)