Guest User

Tabliczki

a guest
Jun 7th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. on sign edit:
  2. line 1 is "[D]":
  3. if line 2 is set:
  4. if line 3 is set:
  5. set line 1 to "&f[&eSELL&f]"
  6. send "&7Utworzono tabliczke kupna dla regionu %line 2%"
  7. add "%line 2%" to {pm.regions::*}
  8.  
  9. on rightclick on sign:
  10. if line 1 is "&f[&eSELL&f]":
  11. set {region.%player%} to line 3 parsed as money
  12. set {_econ} to player's money
  13. send "%{_econ}%"
  14. if {_econ} is greater than or equal to {region.%player%}:
  15. remove {region.%player%} from player's balance
  16. execute console command "/rg addowner %line 2% %player% -w %world of player%"
  17. set line 1 to "&f[&aSOLD&f]"
  18. set line 4 to "&a%player%"
  19. drop sign
  20. send "&a» &7Kupiles dzialke za &e%{region.%player%}%&7$"
  21. remove "%line 2%" from {pm.regions::*}
  22. add "%line 2%" to {regions.%player%::*}
  23. else:
  24. send "&cZa malo kasy!"
Advertisement
Add Comment
Please, Sign In to add comment