Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {ismoney.%player%} = 0
- {error.permission} = "&4&lNie masz uprawnien do tej komendy"
- {error.nocommand} = "&4&lWpisales zla komede. Wpisz: /punkty"
- {error.nomoney} = "&4&lNie masz tyle pieniedzy na koncie"
- command /punkty [<text>] [<player>] [<int>]:
- trigger:
- if arg 1 is not set:
- send "&6&lLista komend:"
- send "&6&l/punkty stan - stan konta"
- send "&6&l/sklep - sklep serwera"
- send "&6&l/wyplac (ilosc) - wyplaca pieniadze"
- else if arg 1 is "stan":
- send "&2&lTwój stan konta: &6&l%{ismoney.%player%}%"
- else if arg 1 is "dodaj":
- if player has permission "ism.admin":
- if arg 2 is set:
- if arg 3 is set:
- add arg 3 to {ismoney.%arg 2%}
- send "&2&lDodales %arg 3% punkt/ów graczowi &6&l%arg 2%"
- else:
- send {error.nocommand}
- else:
- send {error.nocommand}
- else:
- send {error.permission}
- else if arg 1 is "odejmnij":
- if player has permission "ism.admin":
- if arg 2 is set:
- if arg 3 is set:
- remove arg 3 from {ismoney.%arg 2%}
- send "&2&lUsunales %arg 3% punkt/ów graczowi &6&l%arg 2%"
- else:
- send {error.nocommand}
- else:
- send {error.nocommand}
- else:
- send {error.permission}
- else:
- send {error.nocommand}
- command /wyplac [<int>]:
- trigger:
- if arg 1 is set:
- if {ismoney.%player%} is greater than arg 1 -1:
- give player stone named "&4&lWaluta Serwera"
- else:
- send {error.nomoney}
- else:
- send {error.nocommand}
- on drop of stone:
- if name of player's tool is "&4&lWaluta Serwera":
- send "Nie możesz wyrzucić tego przedmiotu"
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment