SA-MP Forums Archive
How to make a /announce for admins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make a /announce for admins (/showthread.php?tid=74544)



How to make a /announce for admins - aspire5630 - 23.04.2009

Hey, i have been looking in wiki, cant find much,
soo i was wondering if you would know
i have basic admin 1
i got it because it very simple, and i can add my own commands to it HOPEFULLY
can you help

i need /announce [text]

then obv on the players screen, it shows the message


Re: How to make a /announce for admins - lavamike - 23.04.2009

https://sampwiki.blast.hk/wiki/GameTextForAll

Styles: https://sampwiki.blast.hk/wiki/GameTextStyle


Re: How to make a /announce for admins - LarzI - 23.04.2009

Quote:
Originally Posted by aspire5630
Hey, i have been looking in wiki, cant find much,
soo i was wondering if you would know
i have basic admin 1
i got it because it very simple, and i can add my own commands to it HOPEFULLY
can you help

i need /announce [text]

then obv on the players screen, it shows the message
I wouldn't recommend doing /announce [text] but # [text] (or another special letter like !, @, % etc

pawn Код:
//OnPlayerText
if(text[0] == '#' && IsPlayerAdmin(playerid)) //This will only work for RCON admins
{
    GameTextForAll(text[1], 5000, 3);
    return false;
}
That should work

Edited 5:28 PM, April 24th 2009.