Guest User

Untitled

a guest
Dec 6th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. #SPRAWDZANIE
  2.  
  3. variables:
  4. {sprawdzany.%player%} = false
  5.  
  6. command /cheat [<text>] [<text>]:
  7. trigger:
  8. if player have permission "DC.Sprawdzanie":
  9. if arg 1 is "sprawdz":
  10. if arg 2 is set:
  11. broadcast "&8&m----------------"
  12. broadcast "&8» &7SPRAWDZANIE"
  13. broadcast "&8» &7Gracz: &6%arg 2% "
  14. broadcast "&8» &7Administrator: &6%player%"
  15. broadcast "&8» &7Wylogowanie sie - &4PERM"
  16. broadcast "&8&m----------------"
  17. set {sprawdzany.%arg 2%} to true
  18. set {sprawdzany.loc.%arg 2%} to location of argument-2 parsed as player
  19. wait 1 second
  20. teleport argument-2 parsed as player to {sprawdzanie}
  21. stop
  22. else:
  23. send "&8۠&7Uzycie komendy:"
  24. send "&8۠&6/cheat sprawdz <NICK>"
  25. stop
  26. if arg 1 is "czysty":
  27. if arg 2 is set:
  28. broadcast "&8&m----------------"
  29. broadcast "&8» &7SPRAWDZANIE"
  30. broadcast "&8» &7Gracz &6%arg 2% &7okazal sie czysty!"
  31. broadcast "&8&m----------------"
  32. set {sprawdzany.%arg 2%} to false
  33. teleport argument-2 parsed as player to {sprawdzany.loc.%arg 2%}
  34. wait 1 second
  35. delete {sprawdzany.loc.%arg 2%}
  36. stop
  37. else:
  38. send "&8۠&7Uzycie komendy:"
  39. send "&8۠&6/cheat czysty <NICK>"
  40. stop
  41. if arg 1 is "cheaty":
  42. if arg 2 is set:
  43. broadcast "&8&m----------------"
  44. broadcast "&8» &7SPRAWDZANIE"
  45. broadcast "&8» &7Gracz &6%arg 2% &7posiada cheaty!"
  46. broadcast "&8&m----------------"
  47. set {sprawdzany.%arg 2%} to false
  48. teleport argument-2 parsed as player to {sprawdzany.loc.%arg 2%}
  49. wait 1 second
  50. delete {sprawdzany.loc.%arg 2%}
  51. stop
  52. else:
  53. send "&8» &7Uzycie komendy:"
  54. send "&8» &6/cheat cheaty <NICK>"
  55. if arg 1 is "setloc":
  56. if arg 2 is not set:
  57. set {sprawdzanie} to location of player
  58. send "&8» &7Lokacja sprawdzania zostala ustawiona!"
  59. stop
  60. if arg 1 is not set:
  61. if arg 2 is not set:
  62. send "&8» &7Uzycie komendy:"
  63. send "&8» &6/cheat sprawdz/czysty/cheaty <NICK>"
  64. stop
  65.  
  66. on chat:
  67. if {sprawdzany.%player%} is true:
  68. cancel event
  69. send "&7Jestes sprawdzany! Nie mozesz wysylac wiadomosci!"
  70. send "&7Dostepne komendy: &amsg&7, &ahelpop&7!"
  71.  
  72. on command:
  73. if {sprawdzany.%player%} is true:
  74. if command isn't "msg" or "helpop":
  75. cancel event
  76. send "&7Jestes sprawdzany! Nie mozesz uzywac komend!"
  77. send "&7Dostepne komendy: &amsg&7, &ahelpop&7!"
  78.  
  79. on quit:
  80. if {sprawdzany.%player%} is true:
  81. broadcast "&8&m----------------"
  82. broadcast "&8۠&7SPRAWDZANIE"
  83. broadcast "&8۠&7Gracz &6%player% &7wylogowal sie podczas sprawdzania!"
  84. broadcast "&8&m----------------"
  85. wait 1 second
  86. execute console command "iban %player% Logout podczas sprawdzania"
  87. teleport player to {sprawdzany.loc.%player%}
  88. set {sprawdzany.%player%} to false
  89. wait 1 second
  90. delete {sprawdzany.loc.%player%}
Advertisement
Add Comment
Please, Sign In to add comment