OnVehicleDamageStatusUpdate
#1

I write to player: high collision
Do not write off the: small collision

how to solve? Code describing the low collision.

Код:
new Float:JarmuHP[MAX_VEHICLES];
Код:
public OnVehicleDamageStatusUpdate(vehicleid,playerid)
{
        new Float:jhp;
        GetVehicleHealth(vehicleid,jhp);
        if(JarmuHP[vehicleid]-100.0 <= jhp)
        {
            SendClientMessage(playerid,-1,"high bumped!");
            JarmuHP[vehicleid] = jhp;
        }
        return 1;
}

public OnVehicleSpawn(vehicleid)
{
        JarmuHP[vehicleid] = 1000.0;
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)