Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("Random messages by Rymax99 loaded");
- SetTimer("randMsg", 120000, 1); //2 minutes, repeating timer
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("Random messages unloaded");
- return 1;
- }
- new randmsg[][144] =
- {
- "test1",
- "test2",
- "test3"
- };
- forward randMsg();
- public randMsg()
- {
- new rand = random(sizeof(randmsg)),
- string[144];
- format(string, sizeof(string), "[TIP]: %s", randmsg[rand], sizeof(randmsg));
- SendClientMessageToAll(-1, string);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement