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
#2

Try AddStaticVehicleEx
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)