Quote:
Originally Posted by cruising
Why does the vehicles respawn when i have this code? it shouldn't respawn again after death?
Code:
public OnVehicleDeath(vehicleid)
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
SetVehicleToRespawn(0);
}
return 1;
}
|
The Parameter of SetVehicleRespawn is asking you the vehicleid, so if you write 0 there, vehicleid 0 will be respawned.