Advertisement
SAMProductions

[10/20/2013] - SA-MP (FilterScript): [SRMSys-v1.0]

Oct 19th, 2013
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.23 KB | None | 0 0
  1.                                                                                                                                                                     /*
  2.  
  3.      ______________________________________________________________________
  4.     |                  _       _                  ________                 |
  5.     |                (  \    (  \               (   _____ \                |
  6.     |                |  |    |  |      ______   |  |     \ \               |
  7.     |                |  |____|  |    (    ___\  |  |      \ \              |
  8.     |                |   ____   |     \  \  (_) |  |       ) )             |
  9.     |                |  |    |  |   _  \  \     |  |      / /              |
  10.     |                |  )    |  ) (  )__\  \    |  |_____/ /               |
  11.     |                |_/     |_/   \_______/    |_________/                |
  12.     |                                                                      |
  13.     |                       [HSD] High Speed Drivers                       |
  14.     |                                                                      |
  15.     |      [HSD] Company Clan of Programmers, Scripters, and Mappers       |
  16.     |______________________________________________________________________|
  17.                      http://forum.sa-mp.com/member.php?u=211939
  18.  
  19.                         Updated Date: 10/20/2013 (MM/DD/YYYY)
  20.  
  21.                        Visit Me on SA-MP Forum for More Updates
  22.  
  23.                                  Let the Credits !
  24.  
  25. • Super Fast System
  26. • [0] Command(s)
  27. • Fast Commands to Enable or Disable System
  28. • http://forum.sa-mp.com/member.php?u=211939 | Visit Me on SA-MP Forum |.
  29.  
  30. ~ Do: ~
  31.  
  32. - Must have Permission if you want to Share this on another Website.
  33. - etc.
  34.  
  35. ~ Do Not: ~
  36.  
  37. - Remove Credits.
  38. - Change Author Name / Information.
  39. - Stealing Filterscript.
  40. - No Permission but Sharing on another Website.
  41. - etc.
  42.  
  43. [ Information ] :-
  44.  
  45. Author: SAMProductions
  46. FilterScript Name: Simple Random Messages System - v1.0
  47. Updated Date: 10/20/2013 - (MM/DD/YYYY)
  48.  
  49. Thanks To:
  50.  
  51. SA-MP Team - a_samp
  52.  
  53. You - For Supporting and Downloading
  54.  
  55. and to Whoever i forgot to Mention
  56.  
  57. -: [ End Information ]
  58.  
  59. • Do not Remove the Credits.
  60. • Do not Change the Author Name / Information.
  61. • Do not Steal the Filterscript.
  62.  
  63. • Disrespecting Any of These, You will Die.
  64. • Disrespecting Any of These, I'll Rape You.
  65. • Disrespecting Any of These, I'll Report You.
  66.  
  67. • Thanks For Using, Enjoy :)
  68.  
  69.  
  70.  
  71. //----------------------------------------------------------------------------//                                                                                                                                                                                                                                    */
  72.  
  73. #include <a_samp> // Credits: SA-MP Team
  74.  
  75. new RandomMessagesToSend[][] =
  76. {
  77.          "Please Visit Our Forum: www.yourwebsiteurl.com",
  78.          "Thank You For Playing (SERVERNAME HERE) !",
  79.          "New in this Server, and Need Help?, /help",
  80.          "Please Read Rules Carefully, /rules",
  81.          "Wanna Know the Player Commands?, /cmds",
  82.          "Wanna Know the Teleports?, /teles",
  83.          "This Server is Hosted by (PLAYERNAME HERE) !",
  84.          "This Server is Scripted by (PLAYERNAME HERE) !",
  85.          "Add Random Message On This Line",
  86.          "Add Random Message On This Line",
  87.          "Add Random Message On This Line"
  88.          
  89. };
  90.  
  91. public OnFilterScriptInit() // or OnGameModeInit (only if you put this on your Game Mode Script)
  92. {
  93.     print("<|---------------------------[Loaded]---------------------------|>");
  94.     print(" | Simple Random Messages System v1.0 Made By: SAMProductions |");
  95.     print("<|---------------------------[Loaded]---------------------------|>");
  96.     SetTimer("SendRandomMessageToAll",30000,1); // Timer: 30000 = 30 Seconds (Change This if you want)
  97.     return 1;
  98. }
  99.  
  100. public OnFilterScriptExit()
  101. {
  102.     print("<|--------------------------[UnLoaded]--------------------------|>");
  103.     print(" | Simple Random Messages System v1.0 Made By: SAMProductions |");
  104.     print("<|--------------------------[UnLoaded]--------------------------|>");
  105.     return 1;
  106. }
  107.  
  108. forward SendRandomMessageToAll();
  109. public SendRandomMessageToAll()
  110. {
  111.     SendClientMessageToAll(0x00C2ECFF, RandomMessagesToSend[random(sizeof(RandomMessagesToSend))]);
  112.     return 1;
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement