SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 23/04/2009, 10:06 PM   #1
aspire5630
Huge Clucker
 
Join Date: Jul 2008
Posts: 284
Reputation: 0
Default How to make a /announce for admins

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
aspire5630 is offline  
Old 23/04/2009, 10:29 PM   #2
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 384
Reputation: 2
Default Re: How to make a /announce for admins

http://wiki.sa-mp.com/wiki/GameTextForAll

Styles: http://wiki.sa-mp.com/wiki/GameTextStyle
lavamike is offline  
Old 23/04/2009, 11:04 PM   #3
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: How to make a /announce for admins

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 Code:
//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.
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make admins read pms? Destiny1991 Server Support 1 11/03/2010 06:41 PM
How to make this work for RCON admins Torran Help Archive 4 10/03/2010 10:30 PM
[HELP] how to make /kick [On admins] KfirRP Help Archive 1 25/11/2009 12:15 PM
How make admins Vehicle Joe2009 Help Archive 4 16/06/2009 06:37 AM


All times are GMT. The time now is 11:54 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.