21.09.2010, 20:46
Quote:
pawn Код:
|
The following is how I'd go about doing this task.
pawn Код:
public OnFilterScriptInit()
{
new Spawn[] = {210, 232, 344, 318}; // Vehicle IDs to respawn
for(new i; i < sizeof Spawn; i++)
{
SetVehicleToRespawn(Spawn[i]);
}
return 1;
}
public OnVehicleSpawn(vehicleid)
{
if(vehicleid == 210) // 210 is the vehicles ID
{
SetVehicleHealth(210, 350); // Vehicles blow up around 250-270, so 350 is fairly low
return 1;
}
return 1;
}