Funnygatt

Simple Message System

Dec 5th, 2014
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. options:
  2. BlankLineAmount: 4
  3. Seperator: &e&l&m==================================
  4.  
  5. function sendMessage(p: Player, message: Text, sound: Boolean):
  6. loop {@BlankLineAmount} times:
  7. message "" to {_p}
  8. replace all "&&" in {_message} with "and"
  9. replace all "&*" in {_message} with ","
  10. {_sound} is true:
  11. play sound "ORB_PICKUP" specifically to {_p} with pitch 1 and volume 10
  12. message "{@Seperator}" to {_p}
  13. message "" to {_P}
  14. message "%{_message}%" to {_p}
  15. message "" to {_P}
  16. message "{@Seperator}" to {_p}
  17.  
  18. function broadcastMessage(message: Text):
  19. loop {@BlankLineAmount} times:
  20. broadcast ""
  21. replace all "&&" in {_message} with "and"
  22. replace all "&*" in {_message} with ","
  23. broadcast "{@Seperator}"
  24. broadcast ""
  25. broadcast "%{_message}%"
  26. broadcast ""
  27. broadcast "{@Seperator}"
Advertisement
Add Comment
Please, Sign In to add comment