Advertisement
buss2

Untitled

Aug 8th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. on join:
  2. if player has permission "x.x":
  3. set {hasloadmina.%player%} to "true"
  4. set {lx.%player%} to x-coordinate of player
  5. set {ly.%player%} to y-coordinate of player
  6. set {lz.%player%} to z-coordinate of player
  7. set {lcord.%player%} to "(%{lx.%player%}%,%{ly.%player%}%,%{lz.%player%}%)"
  8.  
  9. every 5 seconds:
  10. if {hasloadmina.%player%} is "true":
  11. set {x.%player%} to x-coordinate of player
  12. set {y.%player%} to y-coordinate of player
  13. set {z.%player%} to z-coordinate of player
  14. set {cord.%player%} to "(%{x.%player%}%,%{y.%player%}%,%{z.%player%}%)"
  15. if {lcord.%player%} is not {cord.%player%}:
  16. ban player due "Brak potwierdzenia!"
  17.  
  18. command /ahaslo [<text>]:
  19. trigger:
  20. if arg 1 is set:
  21. if arg 1 is {@hasloadmina}:
  22. set {hasloadmina.%player%} to "false":
  23. send "Poprawnie zalogowano na konto admina!"
  24. else:
  25. ban player due "Brak potwierdzenia!"
  26. else:
  27. ban player due "Brak potwierdzenia!"
  28.  
  29. on command:
  30. if {hasloadmina.%player%} is "true":
  31. if command is not "login" or "haslo":
  32. ban player due "Brak potwierdzenia!"
  33. else:
  34. stop
  35. else:
  36. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement