Advertisement
Guest User

Untitled

a guest
May 29th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. variables:
  2. {zl.kurs} = 5
  3. {zl.%player%} = 100
  4. {rubiny.%player%} = 10
  5.  
  6. command /zl:
  7. trigger:
  8. if {zl.%player%} is bigger than "{zl.kurs}":
  9. add 1 to {rubiny.%player%}
  10. remove {zl.kurs} from {zl.%player%}
  11. add 0.1 to {zl.kurs}
  12. else:
  13. send "Masz za mało kasy"
  14.  
  15. command /rb:
  16. trigger:
  17. if {rubiny.%player%} is bigger than "1":
  18. add {zl.kurs} to {zl.%player%}
  19. remove 1 from {rubiny.%player%}
  20. remove 0.1 from {zl.kurs}
  21. else:
  22. send "Masz za mało rubinów"
  23.  
  24. every 1 seconds:
  25. loop all players:
  26. display board named "&8.:: &4Kasa &8::." to loop-player
  27. make score "&7Kurs Zlotówki:" in board of loop-player to {zl.kurs}
  28. make score "&7Zlotówki:" in board of loop-player to {zl.%player%}
  29. make score "&7Rubiny:" in board of loop-player to {rubiny.%player%}
  30. move display of loop-player to sidebar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement