Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on sign edit:
- line 1 is "[D]":
- if line 2 is set:
- if line 3 is set:
- set line 1 to "&f[&eSELL&f]"
- send "&7Utworzono tabliczke kupna dla regionu %line 2%"
- add "%line 2%" to {pm.regions::*}
- on rightclick on sign:
- if line 1 is "&f[&eSELL&f]":
- set {region.%player%} to line 3 parsed as money
- set {_econ} to player's money
- send "%{_econ}%"
- if {_econ} is greater than or equal to {region.%player%}:
- remove {region.%player%} from player's balance
- execute console command "/rg addowner %line 2% %player% -w %world of player%"
- set line 1 to "&f[&aSOLD&f]"
- set line 4 to "&a%player%"
- drop sign
- send "&a» &7Kupiles dzialke za &e%{region.%player%}%&7$"
- remove "%line 2%" from {pm.regions::*}
- add "%line 2%" to {regions.%player%::*}
- else:
- send "&cZa malo kasy!"
Advertisement
Add Comment
Please, Sign In to add comment