Advertisement
Guest User

Untitled

a guest
Nov 29th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. options:
  2. P: &d[&e&l&oInsomnia&d]&f
  3.  
  4. command /deathkick [<text>]:
  5. permission: skript.op
  6. trigger:
  7. if arg 1 is not set:
  8. message "{@P} /deathkick [on|off]"
  9. if arg 1 is "on" or "enable":
  10. set {DeathKick} to true
  11. broadcast "{@P} Death Kick Enabled"
  12. delete {DeathKick::*}
  13. else if arg 1 is "off" or "disable":
  14. delete {DeathKick}
  15. broadcast "{@P} Death Kick Disabled"
  16. delete {DeathKick::*}
  17.  
  18. on death of player:
  19. if {DeathKick} is true:
  20. player is not op:
  21. set {DeathKick::%player%} to true
  22. wait 1 tick
  23. broadcast "{@P} GG, &e%player%"
  24. message "{@P} Thanks for playing!" to the victim
  25. wait 60 seconds
  26. if {DeathKick::%player%} is false:
  27. command "/wl remove %player%"
  28. kick the player due to "{@P} GG, Thanks for playing!"
  29. set {DeathKick::%player%} to true
  30.  
  31. on leave:
  32. if {DeathKick} is true:
  33. set {DeathKick::%player%} to true
  34. command "/wl remove %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement