SAMProductions

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

Oct 19th, 2013
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.98 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 - v2.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 Text:RandomMessages;
  76.  
  77. new RandomMessagesToSend[][] =
  78. {
  79.          "~y~Please Visit Our Forum:~n~~r~www.yourwebsiteurl.com",
  80.          "~g~Thank You For Playing~n~~r~(SERVERNAME HERE) !",
  81.          "~b~New in this Server, and Need Help?, /help",
  82.          "~p~Please Read Rules Carefully, ~r~/rules",
  83.          "~p~Wanna Know the Player Commands?, ~r~/cmds",
  84.          "~g~Wanna Know the Teleports?, ~r~/teles",
  85.          "~r~This Server is Hosted by~n~~r~(PLAYERNAME HERE) !",
  86.          "~g~This Server is Scripted by~n~~r~(PLAYERNAME HERE) !",
  87.          "~b~Add Random Message On This Line",
  88.          "~b~Add Random Message On This Line",
  89.          "~b~Add Random Message On This Line"
  90. };
  91.  
  92. public OnFilterScriptInit() // or OnGameModeInit (only if you put this on your Game Mode Script)
  93. {
  94.     print("<|---------------------------[Loaded]---------------------------|>");
  95.     print(" | Simple Random Messages System v2.0 Made By: SAMProductions |");
  96.     print("<|---------------------------[Loaded]---------------------------|>");
  97.     SetTimer("SendRandomMessageToAll", 15000, true); // Timer: 15000 = 15 Seconds (Change This if you want)
  98.  
  99.     // Random Messages: Start
  100.     RandomMessages = TextDrawCreate(304.000000, 372.000000, "");
  101.     TextDrawAlignment(RandomMessages, 2);
  102.     TextDrawBackgroundColor(RandomMessages, 255);
  103.     TextDrawFont(RandomMessages, 1);
  104.     TextDrawLetterSize(RandomMessages, 0.240000, 1.000000);
  105.     TextDrawColor(RandomMessages, -1);
  106.     TextDrawSetOutline(RandomMessages, 1);
  107.     TextDrawSetProportional(RandomMessages, 1);
  108.     // Random Messages: End
  109.     return 1;
  110. }
  111.  
  112. public OnFilterScriptExit()
  113. {
  114.     print("<|--------------------------[UnLoaded]--------------------------|>");
  115.     print(" | Simple Random Messages System v2.0 Made By: SAMProductions |");
  116.     print("<|--------------------------[UnLoaded]--------------------------|>");
  117.    
  118.     // Random Messages: Start
  119.     TextDrawHideForAll(RandomMessages);
  120.     TextDrawDestroy(RandomMessages);
  121.     // Random Messages: End
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerConnect(playerid)
  126. {
  127.     TextDrawShowForPlayer(playerid, RandomMessages);
  128.     return 1;
  129. }
  130.  
  131. forward SendRandomMessageToAll();
  132. public SendRandomMessageToAll()
  133. {
  134.     new Rand = random(sizeof(RandomMessagesToSend));
  135.     TextDrawSetString(RandomMessages, RandomMessagesToSend[Rand]);
  136.     return 1;
  137. }
Advertisement
Add Comment
Please, Sign In to add comment