18.02.2009, 12:38
Hi.
I need some help.
I want vehicles when someone exit it to respawn back, but not immediately.
I got this now
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.
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);
+ 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.