Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Randommessages by Audi_Quattrix...
- #define FILTERSCRIPT
- #include <a_samp>
- #define YELLOW 0xFFFF00AA
- #if defined FILTERSCRIPT
- forward RandomMessages();
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Randommessages by Audi_Quattrix loaded");
- print("--------------------------------------\n");
- SetTimer("RandomMessages", 60000, true);
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Randommessages by Audi_Quattrix unloaded");
- print("--------------------------------------\n");
- return 1;
- }
- //=================================[Random messages]============================
- new randomMessages[][] =
- {
- "MESSAGE 1",
- "MESSAGE 2",
- "MESSAGE 3",
- "MESSAGE 4" //Feel free to add more :P
- };
- public RandomMessages()
- {
- new randomMsg = random(sizeof(randomMessages));
- SendClientMessageToAll(YELLOW, randomMessages[randomMsg]);
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment