Advertisement
Guest User

RP skrypt

a guest
Mar 21st, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. command /o [<text>]:
  2. trigger:
  3. if arg-1 is set:
  4. loop players in radius 10 around player:
  5. send "&8[&9&lOOC&8] &f%player%&7: &8(%arg-1%)" to loop-players
  6. else:
  7. send "&e[!] &7Pamietaj, gdy chcesz skorzystac z chatu OOC: /o [wiadomosc]"
  8. on chat:
  9. set {%player%.tmsg} to message
  10. replace "(" with "" in {%player%.tmsg}
  11. if message is "(%{%player%.tmsg}%" or "(%{%player%.tmsg}%)":
  12. delete {%player%.tmsg}
  13. cancel event
  14. set {_msg} to message
  15. set {_msg} to "&8%{_msg}%"
  16. loop all players:
  17. if distance between player and loop-player is less than or equal to 10:
  18. send "&8[&4&lOOC&8] &f%player%&7: %{_msg}%" to loop-player
  19.  
  20. command /me [<text>]:
  21. trigger:
  22. if arg 1 is set:
  23. set {%player%::prefix} to colored prefix of the player
  24. replace all " " with "" in {%player%::prefix}
  25. loop players in radius 10 around player:
  26. send "&8[L] &6* %{%player%::prefix}% &e%arg-1% &6*" to loop-players
  27. delete {%player%.prefix}
  28. else:
  29. send "&e[!] &7Pamietaj, gdy piszesz akcje: /me [wiadomosc]"
  30. on chat:
  31. if message contains "*":
  32. set message to "&e%message%"
  33. command /do [<text>]:
  34. trigger:
  35. if arg 1 is set:
  36. set {%player%::prefix} to colored prefix of the player
  37. replace all " " with "" in {%player%::prefix}
  38. loop players in radius 10 around player:
  39. send "&8[L] &6** &e%arg-1% &8(%{%player%::prefix}%&8) &6**" to loop-players
  40. delete {%player%.prefix}
  41. else:
  42. send "&e[!] &7Pamietaj, gdy opisujesz otoczenie itd.: /do [wiadomosc]"
  43.  
  44. command /nar-global [<text>]:
  45. permission: lumos.nar
  46. trigger:
  47. if arg 1 is set:
  48. broadcast "&4[G] &e&l[**%arg 1%**]"
  49. if arg 1 is not set:
  50. send "&7Poprawne uzycie: &6/nar-global (akcja)"
  51. command /nar [<text>]:
  52. permission: lumos.nar
  53. trigger:
  54. if arg 1 is set:
  55. loop players in radius 20 around player:
  56. send "&4[L] &e&l[**%arg 1%**]" to loop-players
  57. else:
  58. send "&e[!] &7Poprawne uzycie: &6/nar (akcja)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement