Onvehiclespawn problem
#1

Hello,i want set the vehicles health (ALL vehicles) to 970.0,so i made this:

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    SetVehicleHealth(vehicleid,970);
    return 1;
}
But doesn't work,health is still at 1000.
Reply
#2

Respawn the vehicles at end of OnGameModeInit

pawn Код:
for(new i; i != MAX_VEHICLES; i++)
    SetVehicleToRespawn(i);
Reply
#3

YEs but this on OnGameModeInit
Reply
#4

Ok thanks i'll do.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)