problem timeforteleport
#1

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,
Reply
#2

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
Reply
#3

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
Reply
#4

Quote:
Originally Posted by cessil
Посмотреть сообщение
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
Can u explain lil bit more ? xd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)