Guest User

MoneyForTime

a guest
Feb 16th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. variables:
  2. {MoneyForTime.status} = 1
  3. options:
  4. tag: &7[&aMoneyForTime&7]
  5. ilosc.kasy: 1
  6. permission: &4Nie masz uprawnien by uzywac tej komendy!
  7.  
  8. on first join:
  9. {MoneyForTime.status} is 1:
  10. log "%player%'s | IP: %IP of player% | Dolaczyl: %now% " to "IP"
  11. set {kasa.%player%.kasa::ilosc} to 0
  12. stop
  13. on join:
  14. set {kasa.%player%.kasa::ilosc} to 0
  15. stop
  16. every 1 second:
  17. {MoneyForTime.status} is 1:
  18. loop all players:
  19. add {@ilosc.kasy} to {kasa.%loop-player%.kasa::ilosc}
  20. stop
  21. on quit:
  22. {MoneyForTime.status} is 1:
  23. loop all players:
  24. add {kasa.%player%.kasa::ilosc} to the player's account
  25. set {kasa.%loop-player%.kasa::ilosc} to 0
  26. stop
  27.  
  28. on pressure plate:
  29. {MoneyForTime.status} is 1:
  30. add {kasa.%player%.kasa::ilosc} to the player's account
  31. send "{@tag} Dodano &a%{kasa.%player%.kasa::ilosc}%$ &7do twojego konta"
  32. set {kasa.%player%.kasa::ilosc} to 0
  33. stop
  34.  
  35. command /moneyfortime [<text>]:
  36. trigger:
  37. if player has permission "MoneyForTime.admin":
  38. if arg 1 is "on":
  39. set {MoneyForTime.status} to 1
  40. send "{@tag} &7MoneyForTime &awlaczony"
  41. stop
  42. if arg 1 is "off":
  43. set {MoneyForTime.status} to 0
  44. loop all players:
  45. send "{@tag} &7MoneyForTime &cwylaczony"
  46. set {kasa.%player%.kasa::ilosc} to 0
  47. stop
  48. if arg 1 is "reload" or "r":
  49. execute player command "sk reload %script%"
  50. send "{@tag} &cPrzeladowano"
  51. else:
  52. send "{@tag} &c/MoneyForTime <&fon/off&c>"
  53. stop
  54. else:
  55. send "{@tag} {@permission}"
  56. stop
Add Comment
Please, Sign In to add comment