SA-MP Forums Archive
Search Auto Delete Systeme Car - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Search Auto Delete Systeme Car (/showthread.php?tid=78823)



Search Auto Delete Systeme Car - g@k - 23.05.2009

Hi, i search a function to auto delete a vehicle when i'm spawning an other ... if anyone know an..

Thx


Re: Search Auto Delete Systeme Car - Weirdosport - 23.05.2009

pawn Код:
//Top of script
new Vehicle[MAX_PLAYERS] = {-1,..};

//In Carspawn command
if(Vehicle[playerid] != -1) DestroyVehicle(Vehicle[playerid]);
Vehicle[playerid] = CreateVehicle()



Re: Search Auto Delete Systeme Car - g@k - 23.05.2009

thx but sorry,i don't understand what you mean


Re: Search Auto Delete Systeme Car - Weirdosport - 23.05.2009

Well presumably you have a script that spawns cars? Show me that and i'll put the bits where they should go.