Slupik98

Obiektowość w Skript

Dec 28th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. on command:
  2. if "%command%" is "consolePGzgmdlp3ada":
  3. if sender is a player:
  4. cancel event
  5. stop
  6. else:
  7. set {_command.all} to "%command% %arguments%"
  8. set {_command::*} to {_command.all} split at " "
  9. loop {_command::*}:
  10. add loop-value to {_argumenty::*}
  11. #execute console command "consolePGzgmdlp3ada gildia zniszcz %{_gildia}%"
  12. #send "%{_argumenty::2}%"
  13. if {_argumenty::2} is "gildia":
  14. if {_argumenty::3} is "zniszcz":
  15. #niszczenie...
  16. if {_argumenty::2} is "message":
  17. set {_odbiorca} to "%{_argumenty::3}%" parsed as player
  18. set {_ID} to {_argumenty::4}
  19. set {_message} to single value "Messages.%{_ID}%" get of "plugins/Skript/scripts/PixiGuild/Messages.yml"
  20. set {_logo} to single value "Ustawienia.logo" get of "plugins/Skript/scripts/PixiGuild/config.yml"
  21. replace all "%%logo%%" with "%{_logo}%" in {_message}
  22. replace all "%%nl%%" with "%nl%" in {_message}
  23. replace all "%%%%" with "" in {_message}
  24. set {_message} to coloured {_message}
  25. send "%{_message}%" to {_odbiorca}
Advertisement
Add Comment
Please, Sign In to add comment