Vehicles dissapear with this code
#1

Hi.
I need some help.
I want vehicles when someone exit it to respawn back, but not immediately.

I got this now

Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
	new currentveh;
 	currentveh = GetPlayerVehicleID(playerid);
 	SetVehicleToRespawn(currentveh);
	return 1;
}
Код:
public OnGameModeInit()
SetTimer("OnPlayerExitVehicle",300000,false);
How can i fix this so it'll spawn back after 5 min?


+ This isn't a good code, because cars dissapear also when someone is still in it.
The best would be that someone helps me with a total script for Respawning a car after some time.

And the thing is, i'm using Taxi vehicle streamer, so i can't use AddStaticVehicleEx for respawn_delay.
Reply


Messages In This Thread
Vehicles dissapear with this code - by Henrix - 18.02.2009, 12:38
Re: Vehicles dissapear with this code - by Joe Staff - 18.02.2009, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)