Guest User

Chump Charity

a guest
Jun 2nd, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. #==================================#
  2. #== TalonIII's ==#
  3. #== Chump Charity UHC Gamemode ==#
  4. #== Version 1.0 ==#
  5. #==================================#
  6.  
  7. # Feel free to edit this to your heart's content.
  8. # If you see an error, please contact me at [email protected]
  9.  
  10. #============#
  11. #= Commands =#
  12. #============#
  13.  
  14. command /ccenable:
  15. description: Enables the Chump Charity gamemode
  16. usage: /ccenable
  17. permission: skript.cc
  18. trigger:
  19. set {ChumpCharity} to true
  20. execute console command "/announce Chump Charity has been enabled!"
  21.  
  22. command /ccdisable:
  23. description: Disables the Chump Charity gamemode
  24. usage: /ccdisable
  25. permission: skript.cc
  26. trigger:
  27. set {ChumpCharity} to false
  28. execute console command "/announce Chump Charity has been disabled!"
  29.  
  30. command /lowesthealth:
  31. description: Tells the player who is the lowest health
  32. usage: /lowesthealth
  33. trigger:
  34. message the player "The person at the lowest health is %{lowest.health}%"
  35.  
  36. #===========#
  37. #= Effects =#
  38. #===========#
  39.  
  40. every second:
  41. {ChumpCharity} is true
  42. loop all players:
  43. if {lowest.Health} is not set:
  44. set {lowest.health} to loop-player
  45. if the health of loop-player is less than the health of {lowest.health}:
  46. set {lowest.health} to loop-player
  47.  
  48. every 10 minutes:
  49. {ChumpCharity} is true
  50. broadcast "<gold><bold>[Chump Charity] The Chump is about to get some Charity!"
  51. broadcast "<gold><bold>[Chump Charity] Use /lowesthealth to find out who it is!"
  52. set {_prizenumber} to a random integer between 1 and 5
  53. wait 5 seconds
  54. if {_prizenumber} is 1:
  55. give the player with the lowest health 8 gold ingots
  56. else if {_prizenumber} is 2:
  57. give the player with the lowest health 2 diamonds
  58. else if {_prizenumber} is 3:
  59. give the player with the lowest health 4 gold ingots
  60. else if {_prizenumber} is 4:
  61. give the player with the lowest health 1 bow
  62. give the player with the lowest health 32 arrows
  63. else if {_prizenumber} is 5:
  64. give the player with the lowest health 1 diamond sword
Advertisement
Add Comment
Please, Sign In to add comment