Organized

Team Horse [SK]

Jun 29th, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. on vehicle enter:
  2. event-entity is a horse
  3. wait 1 tick
  4. {Team_Horse} is set
  5. set {_player} to player
  6. loop {Team.%{TeamNumber::%{_player}%}%::*}:
  7. set {_f} to ("%loop-value%" parsed as offlineplayer)
  8. {_f} is not {_player}
  9. if {_f} is riding a horse:
  10. make {_player} dismount
  11. send "&c'%{_f}%' is already riding a horse" to {_player}
  12. stop
Advertisement
Add Comment
Please, Sign In to add comment