Guest User

Untitled

a guest
Sep 3rd, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. variables:
  2. {ismoney.%player%} = 0
  3. {error.permission} = "&4&lNie masz uprawnien do tej komendy"
  4. {error.nocommand} = "&4&lWpisales zla komede. Wpisz: /punkty"
  5. {error.nomoney} = "&4&lNie masz tyle pieniedzy na koncie"
  6.  
  7. command /punkty [<text>] [<player>] [<int>]:
  8. trigger:
  9. if arg 1 is not set:
  10. send "&6&lLista komend:"
  11. send "&6&l/punkty stan - stan konta"
  12. send "&6&l/sklep - sklep serwera"
  13. send "&6&l/wyplac (ilosc) - wyplaca pieniadze"
  14. else if arg 1 is "stan":
  15. send "&2&lTwój stan konta: &6&l%{ismoney.%player%}%"
  16. else if arg 1 is "dodaj":
  17. if player has permission "ism.admin":
  18. if arg 2 is set:
  19. if arg 3 is set:
  20. add arg 3 to {ismoney.%arg 2%}
  21. send "&2&lDodales %arg 3% punkt/ów graczowi &6&l%arg 2%"
  22. else:
  23. send {error.nocommand}
  24. else:
  25. send {error.nocommand}
  26. else:
  27. send {error.permission}
  28. else if arg 1 is "odejmnij":
  29. if player has permission "ism.admin":
  30. if arg 2 is set:
  31. if arg 3 is set:
  32. remove arg 3 from {ismoney.%arg 2%}
  33. send "&2&lUsunales %arg 3% punkt/ów graczowi &6&l%arg 2%"
  34. else:
  35. send {error.nocommand}
  36. else:
  37. send {error.nocommand}
  38. else:
  39. send {error.permission}
  40. else:
  41. send {error.nocommand}
  42.  
  43. command /wyplac [<int>]:
  44. trigger:
  45. if arg 1 is set:
  46. if {ismoney.%player%} is greater than arg 1 -1:
  47. give player stone named "&4&lWaluta Serwera"
  48. else:
  49. send {error.nomoney}
  50. else:
  51. send {error.nocommand}
  52.  
  53. on drop of stone:
  54. if name of player's tool is "&4&lWaluta Serwera":
  55. send "Nie możesz wyrzucić tego przedmiotu"
  56. cancel event
Advertisement
Add Comment
Please, Sign In to add comment