OnPlayerUpdate
#6

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
Can't believe I didn't think of this, lol. Why don't you just use OnPlayerStateChange and use
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
    // You would then add the vehicle health/id code here.
What about if the player's in a car with 1000 health and only afterwards, he makes an accident and the vehicles health is lowering under 450 ? That wouldn't work with your solution.

So, a timer is still the best solution. Use SpiritEvils code.
Reply


Messages In This Thread
OnPlayerUpdate - by new121 - 20.03.2012, 21:00
Re: OnPlayerUpdate - by ReneG - 20.03.2012, 21:28
Re: OnPlayerUpdate - by new121 - 20.03.2012, 21:29
Re: OnPlayerUpdate - by SpiritEvil - 20.03.2012, 21:41
Re: OnPlayerUpdate - by ReneG - 20.03.2012, 22:02
Re: OnPlayerUpdate - by antonio112 - 20.03.2012, 22:05
Re: OnPlayerUpdate - by Micko123 - 04.11.2016, 07:17
Re: OnPlayerUpdate - by Vince - 04.11.2016, 10:32
Re: OnPlayerUpdate - by Micko123 - 04.11.2016, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)