11.01.2009, 18:44
Just do like
The vehicles will be really hard to blow up. Even if they do it will be reset when they spawn.
pawn Код:
new GodCars[6];
//OnGameModeInit
GodCars[0] = AddStaticVehicle(Blah blahj blah);
GodCars[1] = AddStaticVehicle(Blah blahj blah);
GodCars[2] = AddStaticVehicle(Blah blahj blah);
//etc...
SetVehicleHealth(GodCars[0], 100000);
SetVehicleHealth(GodCars[1], 100000);
SetVehicleHealth(GodCars[2], 100000);
//etc...
//OnVehicleSpawn
if(vehicleid == GodCars[0])
{
SetVehicleHealth(GodCars[0], 100000);
}
if(vehicleid == GodCars[1])
{
SetVehicleHealth(GodCars[1], 100000);
}
//etc...