MrKakashi

Mr.Kakashi's Autoannounce Filterscript

Aug 13th, 2011
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. // Mr.Kakashi's Autoannounce Filterscript
  2. // Make By Mr.Kakashi
  3. // Copyright 2011@
  4. // Credits To Kakashi
  5. //
  6.  
  7. //Dont Remove The Credits!
  8.  
  9. #include <a_samp>
  10.  
  11. #if defined FILTERSCRIPT
  12.  
  13. #define RANDOM_MESSAGE_TIMER 60000 //Autoannounce Message 600000 = 1 Minute
  14.  
  15. #define COLOR_RED 0xFF0000FF //You Can Change it :D
  16.  
  17. new messagenumber = 0;
  18. new messages[][] =
  19. {
  20. "[SERVER]:Dont Know All Commands?,Try /cmds",
  21. "[SERVER]:Want to change your name color?,Try our new /changemycolour",
  22. "[SERVER]:Want to Be Admin?, Apply On Forum At www.stunt-planet.co.nr",
  23. "[SERVER]:Want to Be Xtreme Stunting Member? Remember Just Put [XS] To Your Name or After You Name",
  24. "[SERVER]:[WP] Clan is The Secondary Clan of XS its not free clan to join the clan you must apply on forum",
  25. "[SERVER]:Want To Make your own clan? You must sign in/sign up to our permit on forum before making clan.",
  26. "[SERVER]:Dont Know All Teleport Commands?,Try /tele (/teleports)",
  27. "[SERVER]:Didnt read rules yet?,Try /rules",
  28. "[SERVER]:Clan Making Needs A Permit if you make a clan without permit your clan will be banned",
  29. "[SERVER]:Gamemode Credits To Mr.Kakashi"
  30. };
  31.  
  32. //You can edit the Message if you want :D
  33.  
  34. public OnFilterScriptInit()
  35. {
  36. print("\n--------------------------------------");
  37. print(" Autoannounce Message By Mr.Kakashi");
  38. print("--------------------------------------\n");
  39. SetTimer("SendMessages", RANDOM_MESSAGE_TIMER, true); //Timer
  40. return 1;
  41. }
  42.  
  43. public OnFilterScriptExit()
  44. {
  45. return 1;
  46. }
  47.  
  48. forward SendMessages();
  49. public SendMessages()
  50. {
  51. if(messagenumber == sizeof(messages)) messagenumber = 0;
  52. SendClientMessageToAll(COLOR_RED, messages[messagenumber]);
  53. messagenumber ++;
  54. return 1;
  55. }
  56.  
  57. #else
  58.  
  59. #endif
Advertisement
Add Comment
Please, Sign In to add comment