MrKakashi

Random Message

Aug 28th, 2011
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. #define RANDOM_MESSAGE_TIMER 60000 //Autoannounce Message 600000 = 1 Minute
  2.  
  3. #define COLOR_RED 0xFF0000FF //You Can Change it :D
  4.  
  5. new messagenumber = 0;
  6. new messages[][] =
  7. {
  8. "[SERVER]:Dont Know All Commands?,Try /cmds",
  9. "[SERVER]:Want to change your name color?,Try our new /changemycolour",
  10. "[SERVER]:Want to Be Admin?, Apply On Forum At www.stunt-planet.co.nr",
  11. "[SERVER]:Want to Be Xtreme Stunting Member? Remember Just Put [XS] To Your Name or After You Name",
  12. "[SERVER]:[WP] Clan is The Secondary Clan of XS its not free clan to join the clan you must apply on forum",
  13. "[SERVER]:Want To Make your own clan? You must sign in/sign up to our permit on forum before making clan.",
  14. "[SERVER]:Dont Know All Teleport Commands?,Try /tele (/teleports)",
  15. "[SERVER]:Didnt read rules yet?,Try /rules",
  16. "[SERVER]:Clan Making Needs A Permit if you make a clan without permit your clan will be banned",
  17. "[SERVER]:Gamemode Credits To Mr.Kakashi"
  18. };
  19.  
  20. SetTimer("SendMessages", RANDOM_MESSAGE_TIMER, true); //Timer - Put this ongamemodeinit
  21.  
  22.  
  23. forward SendMessages();
  24. public SendMessages()
  25. {
  26. if(messagenumber == sizeof(messages)) messagenumber = 0;
  27. SendClientMessageToAll(COLOR_RED, messages[messagenumber]);
  28. messagenumber ++;
  29. return 1;
  30. }
  31.  
  32.  
  33. //You must define COLOR_RED
Advertisement
Add Comment
Please, Sign In to add comment