Guest User

AUTO MESSAGES optimised

a guest
May 27th, 2010
947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.81 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. #define FILTERSCRIPT
  5. #define COLOR_LIGHTBLUE 0x33CCFFAA
  6.  
  7. #include <a_samp>
  8.  
  9. forward Messages();
  10.  
  11. new Message[][] =
  12. {
  13.         "www.sa-mp.com",
  14.         "Download sa-mp RC7 at www.sa-mp.com/download.php!",
  15.         "Automatic messages by iLcke!"
  16. };
  17.  
  18. public OnFilterScriptInit()
  19. {
  20.     print("\n--------------------------------------");
  21.     print(" Automatic Messages by iLcke");
  22.     print("--------------------------------------\n");
  23.     return 1;
  24. }
  25.  
  26. public OnFilterScriptExit()
  27. {
  28.     return 1;
  29. }
  30.  
  31. public OnGameModeInit()
  32. {
  33.         SetTimer("Messages", 120000, true);  // 120000 = 2 minutes
  34.     return 1;
  35. }
  36.  
  37. public Messages()
  38. {
  39.         SendClientMessageToAll(COLOR_LIGHTBLUE, Message[random(sizeof(Message))]);
  40. }
Advertisement
Add Comment
Please, Sign In to add comment