SA-MP Forums Archive
Destroy car on exit script... - 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: Destroy car on exit script... (/showthread.php?tid=126050)



Destroy car on exit script... - MuMiJa - 06.02.2010

Hi, How to do that all vehicles in script destroy when script unload.

Sry for my bad english

Thanks


Re: Destroy car on exit script... - NewYorkRP - 06.02.2010

When the gamemode closes? - It auto deletes.


Re: Destroy car on exit script... - Correlli - 06.02.2010

Quote:
Originally Posted by MuMiJa
Hi, How to do that all vehicles in script destroy when script unload.
Do you mean filterscript?


Re: Destroy car on exit script... - GTAguillaume - 06.02.2010

FS:
Код:
public OnFilterScriptExit()
{
for(new i=1;i<MAX_VEHICLES;i++)DestroyVehicle(i);
}
GM:
Код:
public OnGameModeExit()
{
for(new i=1;i<MAX_VEHICLES;i++)DestroyVehicle(i);
}



Re: Destroy car on exit script... - MuMiJa - 06.02.2010

Quote:
Originally Posted by GTAguillaume
FS:
Код:
public OnFilterScriptExit()
{
for(new i=1;i<MAX_VEHICLES;i++)DestroyVehicle(i);
}
GM:
Код:
public OnGameModeExit()
{
for(new i=1;i<MAX_VEHICLES;i++)DestroyVehicle(i);
}
Thanks !