Advertisement
Winter__

Untitled

Aug 12th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. on death of a player:
  2. {KillerCaptains.Started} is true
  3. victim is in "Spawn"
  4. attacker is in "Spawn"
  5. if {Captain.CaptainOf::%attacker%} is set:
  6. execute console command "/effect %victim% clear"
  7. set {_Player} to victim
  8. set {_Team} to {Teams.InTeam::%{_Player}%}
  9. remove {_Player} from {Team.%{_Team}%::*}
  10. delete {Teams.InTeam::%{_Player}%}
  11. command "/scoreboard teams leave %{_Player}%"
  12.  
  13. set {_Player} to victim
  14. set {_TeamNumber} to {Captain.CaptainOf::%attacker%}
  15. set {Teams.InTeam::%{_Player}%} to {_TeamNumber}
  16. add {_Player} to {Team.%{_TeamNumber}%::*}
  17. command "/scoreboard teams join UHC%{_TeamNumber}% %{_Player}%"
  18.  
  19. set {KillerCaptains.Chosen::%victim%} to true
  20.  
  21. on respawn:
  22. wait 1 tick
  23. {KillerCaptains.Started} is true
  24. {KillerCaptains.Chosen::%player%} is true
  25. execute console command "/warp killercaptains %player%"
  26. delete {KillerCaptains.Chosen::%player%}
  27. Shelden - GDD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement