Posts: 71
Threads: 27
Joined: Apr 2010
Reputation:
0
I use tele's in my server and i want that a player can't teleport when he lost health the last 10seconds, how to do this?
Greets,
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
create a timer to check the players health and save it to a variable, if the players new health is less than their old health set a variable that'll prevent them from teleporting and then another timer to unset that variable in 10seconds time
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Get YUP.
OnPlayerLoseHealth or w/e the callback is named, get's called when the player loses health.
Use it to check, then set a timer, but reset the timer (kill, set) if the player loses health once more