Spawned cars delete - 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: Spawned cars delete (
/showthread.php?tid=268643)
Spawned cars delete -
SydonaiCZ - 13.07.2011
I need help o want script file that delete spawned cars by comand /elegy /sultan /jester and more but no cars wich is includes in gamemode any help ?
Re: Spawned cars delete -
Patrik356b - 13.07.2011
When a vehicle is spawned, save it's id, then you can just delete it easy.
Or use:
Код:
if(strcmp("/delveh", cmdtext, true))
{
DestroyVehicle(GetPlayerVehicleID(playerid));
}