Announce command help
#7

pawn Code:
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
params was used, u specifier is for players' and NPCs' ID/part of name. The for loop is unnecessary.

Using ~w~ will change the color to white.
pawn Code:
dcmd_ann(playerid,params[])
{
    if(PlayerInfo[playerid][Level] < 3) return SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR] {FFFFFF}You don't have an appropriate administration level to use this command.");
    if(isnull(params)) return SendClientMessage(playerid,COLOR_WHITE,""COL_ORANGE"[USAGE] {FFFFFF}/ann(ounce) [MESSAGE]");
    new message[128];
    format(message, sizeof(message), "~w~%s", params);
    GameTextForAll(message, 4000, 4 );
    return 1;
}
Reply


Messages In This Thread
Announce command help - by iFiras - 07.10.2013, 12:30
Re: Announce command help - by MAFIAWARS - 07.10.2013, 12:35
Re: Announce command help - by TomatoRage - 07.10.2013, 13:03
Re: Announce command help - by iFiras - 08.10.2013, 12:09
Re: Announce command help - by jueix - 08.10.2013, 12:11
Re: Announce command help - by iFiras - 08.10.2013, 12:11
Re: Announce command help - by Konstantinos - 08.10.2013, 12:15
Re: Announce command help - by jueix - 08.10.2013, 12:16
Re: Announce command help - by iFiras - 08.10.2013, 12:23
Re: Announce command help - by Mattakil - 08.10.2013, 12:30

Forum Jump:


Users browsing this thread: 3 Guest(s)