Advertisement
xNawi

Sprint

May 27th, 2015
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. every 1 seconds:
  2. loop all players:
  3. if {_x} is not set:
  4. set {_x} to food level of loop-player
  5. if loop-player is sprinting:
  6. if {_x} > 1:
  7. remove 1 from {_x}
  8. else:
  9. if {_x} < 20:
  10. add 1 to {_x}
  11. set food level of loop-player to {_x}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement