How to add adverstiment into server - 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 add adverstiment into server (
/showthread.php?tid=115152)
How to add adverstiment into server -
Lotusmp - 22.12.2009
I want an adverstiment text to display every 5 mins on the server if ya know tell how and where to add?
Re: How to add adverstiment into server -
*ToM* - 22.12.2009
Quote:
Originally Posted by <Davis>
I want an adverstiment text to display every 5 mins on the server if ya know tell how and where to add? 
|
Go and ask in Scripting Discussions board, also use Searching Function as I've answered a few guys already and supplied them with code. So don't be lazy...
Re: How to add adverstiment into server -
Ironboy500 - 22.12.2009
Use Random Messages.
https://sampwiki.blast.hk/wiki/Random_Messages
Re: How to add adverstiment into server -
Lotusmp - 22.12.2009
Quote:
Originally Posted by Ironboy500
|
thanks helped
Re: How to add adverstiment into server -
Ironboy500 - 22.12.2009
Np
Re: How to add adverstiment into server -
Joe Staff - 22.12.2009
Or you can try mine. I never released it but I did add it to my pastebin.
http://joestaff.pastebin.com/f34c2daf0
It offers in-game modifiable random messages, and you can modify the max amount of random messages.
Commands:
/SetMessage <id> <text> -- Used to modify the random messages (ids are 0 thru MAX-1. The random message will tell you)
/SetMSGTimer <time> -- Modifies how often the random message will appear (in milliseconds) 0 = instant (don't do) 1000 = 1 second
/ClearMessage <id> -- Clears the message
If all messages are cleared then the timer will stop until one is created with /SetMessage.
All of the information is saved too, including the messages and the time.
Re: How to add adverstiment into server -
Lotusmp - 22.12.2009
its fs?i need something to add to gm
Re: How to add adverstiment into server -
Joe Staff - 22.12.2009

It's like 4 steps to make that placeable into a gamemode.
Remove #include <a_samp>
Place everything that's in OnFilterScriptInit into OnGameModeInit (excluding the braces and return)
Same with OnFilterScriptExit to OnGameModeExit
Place everything that's in OnPlayerCommandText into OnPlayerCommandText!
Re: How to add adverstiment into server -
Lotusmp - 22.12.2009
if i will remove include samp gamemod will crash!!!
Re: How to add adverstiment into server -
Joe Staff - 22.12.2009
I wasn't talking about your script, I was talking about mine.