How to make a /announce for admins
#1

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
Reply
#2

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

Styles: https://sampwiki.blast.hk/wiki/GameTextStyle
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)