Guest User

Auto Messages

a guest
May 26th, 2010
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. //Automatic Messages by iLcke
  2. //This is just a simple script for beginners using automatic messages on there server
  3.  
  4.  
  5. #define FILTERSCRIPT
  6. #define COLOR_LIGHTBLUE 0x33CCFFAA
  7.  
  8. #include <a_samp>
  9.  
  10. #if defined FILTERSCRIPT
  11.  
  12. forward Messages();
  13.  
  14. new Message[][] =
  15. {
  16. "www.sa-mp.com",
  17. "Download sa-mp RC7 at www.sa-mp.com/download.php!",
  18. "Automatic messages by iLcke!"
  19. };
  20.  
  21. public OnFilterScriptInit()
  22. {
  23. print("\n--------------------------------------");
  24. print(" Automatic Messages by iLcke");
  25. print("--------------------------------------\n");
  26. return 1;
  27. }
  28.  
  29. public OnFilterScriptExit()
  30. {
  31. return 1;
  32. }
  33. #endif
  34.  
  35. public OnGameModeInit()
  36. {
  37. SetTimer("Messages", 120000, true); // 12000 = 2 minutes
  38. return 1;
  39. }
  40. public Messages()
  41. {
  42. new randMSG = random(sizeof(Message));
  43. SendClientMessageToAll(COLOR_LIGHTBLUE, Message[randMSG]);
  44. }
Advertisement
Add Comment
Please, Sign In to add comment