knugi

Untitled

Jun 23rd, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. variables:
  2. {sektor.%player%} = "a"
  3. options:
  4. kasa.sektor.b: 500
  5. kasa.sektor.c: 1000
  6. kasa.sektor.d: 1500
  7. kasa.sektor.e: 2000
  8. command /sektor [<text>]:
  9. trigger:
  10. player has permission "sektor.b":
  11. arg 1 is "b":
  12. {sektor.%player%} is "a":
  13. player's money is greater than {@kasa.sektor.b} - 1:
  14. execute console command "/pex user %player% group set sektorb"
  15. send "&2Awansoales na sektor &cB" to the player
  16. broadcast "&9%display name of player% &2Awansowal na sektor &cB"
  17. set {sektor.%player%} to "b"
  18. stop
  19. send "&cNie posiadasz {@kasa.sektor.b}$"
  20. stop
  21. send "&cJestes juz w wyzszym sektorze!"
  22. stop
  23. arg 1 is "c":
  24. {sektor.%player%} is "b":
  25. player's money is greater than {@kasa.sektor.c} - 1:
  26. execute console command "/pex user %player% group set sektorc"
  27. send "&2Awansoales na sektor &cC" to the player
  28. broadcast "&9%display name of player% &2Awansowal na sektor &cC"
  29. set {sektor.%player%} to "c"
  30. stop
  31. send "&cNie posiadasz {@kasa.sektor.c}$"
  32. stop
  33. send "&4Nie masz, lub masz wyzszy sektor niż &cB"
  34. stop
  35. arg 1 is "d":
  36. {sektor.%player%} is "c":
  37. player's money is greater than {@kasa.sektor.d} - 1:
  38. execute console command "?pex user %player% group set sektord"
  39. send "&2Awansoales na sektor &cD" to the player
  40. broadcast "&9%display name of player% &2Awansowal na sektor &cD"
  41. set {sektor.%player%} to "d"
  42. stop
  43. send "&cNie posiadsaz {@kasa.sektor.d}$"
  44. stop
  45. send "&cNie masz, lub asz wyzszy sektor nic &cC"
  46. stop
  47. send "&cBlad: &4/sektor <a,b,c,...>"
  48. stop
  49. send "&cNo permission"
  50. stop
Advertisement
Add Comment
Please, Sign In to add comment