OnPlayerUpdate
#8

Much more optimized version without all the redundant checks:
PHP код:
public PlayersCheck()
{
    for(new 
0GetPlayerPoolSize(), Float:vhealth<= ji++)
    {
        if(
GetVehicleHealth(GetPlayerVehicleID(i), vhealth))
        {
            if(
vhealth 450)
            {
                
RemovePlayerFromVehicle(i);
            }
        }
    }

Edit: crap, didn't see the dates. Was looking at date of last post. Oh well.
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)