Guest User

Randommessages

a guest
Jul 30th, 2012
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. // Randommessages by Audi_Quattrix...
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5. #define YELLOW 0xFFFF00AA
  6. #if defined FILTERSCRIPT
  7. forward RandomMessages();
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Randommessages by Audi_Quattrix loaded");
  13. print("--------------------------------------\n");
  14. SetTimer("RandomMessages", 60000, true);
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. print("\n--------------------------------------");
  21. print(" Randommessages by Audi_Quattrix unloaded");
  22. print("--------------------------------------\n");
  23. return 1;
  24. }
  25. //=================================[Random messages]============================
  26. new randomMessages[][] =
  27. {
  28. "MESSAGE 1",
  29. "MESSAGE 2",
  30. "MESSAGE 3",
  31. "MESSAGE 4" //Feel free to add more :P
  32. };
  33. public RandomMessages()
  34. {
  35. new randomMsg = random(sizeof(randomMessages));
  36. SendClientMessageToAll(YELLOW, randomMessages[randomMsg]);
  37. }
  38. #endif
Advertisement
Add Comment
Please, Sign In to add comment