OnVehicleDeat
#5

Quote:
Originally Posted by cruising
View Post
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.
Reply


Messages In This Thread
OnVehicleDeat - by cruising - 28.08.2010, 10:19
Re: OnVehicleDeat - by Sergei - 28.08.2010, 10:20
Re: OnVehicleDeat - by [HiC]TheKiller - 28.08.2010, 10:21
Re: OnVehicleDeat - by cruising - 28.08.2010, 10:24
Re: OnVehicleDeat - by Adil - 28.08.2010, 10:24
Re: OnVehicleDeat - by [XST]O_x - 28.08.2010, 10:24
Re: OnVehicleDeat - by cruising - 28.08.2010, 10:30
Re: OnVehicleDeat - by [XST]O_x - 28.08.2010, 10:32
Re: OnVehicleDeat - by cruising - 28.08.2010, 10:36
Re: OnVehicleDeat - by Claude - 28.08.2010, 13:13

Forum Jump:


Users browsing this thread: 1 Guest(s)