SA-MP Forums Archive
Destroy after Seconds. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Destroy after Seconds. (/showthread.php?tid=331181)



Destroy after Seconds. - RowdyrideR - 03.04.2012

Mmm
I'm just asking how to Destroy a Vehicle after 10 Seconds from leaving it (For the Spawner FS)
The Problem is that i have a Vehicles from the GM that i dont want them to get Destroyed as the Vehicles from the Spawner FS

Any Ideas?
Yeah i searched alot But got nothin...

Thanks


Re: Destroy after Seconds. - ViniBorn - 03.04.2012

You use CreateVehicle or AddStaticVehicle?


Re: Destroy after Seconds. - RowdyrideR - 03.04.2012

CreateVehicle


Re: Destroy after Seconds. - RowdyrideR - 03.04.2012

Use anything lol, I Just Need it...


Re: Destroy after Seconds. - ViniBorn - 03.04.2012

Can you show me the FS used?

Is something like:

pawn Код:
new bool:AllowedSpawn[MAX_VEHICLES];
new Car;

Car = CreateVehicle(522, 0.0, 0.0, 20.0, 0.0, 0, 1,-1);
AllowedSpawn[Car] = false;


//
if(AllowedSpawn[Car] == true)
    //Spawn it



Re: Destroy after Seconds. - RowdyrideR - 03.04.2012

<< PM


Re: Destroy after Seconds. - RowdyrideR - 03.04.2012

Still UnSolved