How to add adverstiment into server
#1

I want an adverstiment text to display every 5 mins on the server if ya know tell how and where to add?
Reply
#2

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

Use Random Messages.
https://sampwiki.blast.hk/wiki/Random_Messages
Reply
#4

Quote:
Originally Posted by Ironboy500
thanks helped
Reply
#5

Np
Reply
#6

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

its fs?i need something to add to gm
Reply
#8

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!
Reply
#9

if i will remove include samp gamemod will crash!!!
Reply
#10

I wasn't talking about your script, I was talking about mine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)