SA-MP Forums Archive
Destroying Vehicles - 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: Destroying Vehicles (/showthread.php?tid=403046)



Destroying Vehicles - megamind2067 - 28.12.2012

Does anyone know a pawno code that can delete a vehicle 30 seconds after use

P.S. I do not mean respawn..


Re : Destroying Vehicles - DaRk_RaiN - 28.12.2012

Use a timer that runs for 30 secs, the use DestroyVehicle


Re: Destroying Vehicles - megamind2067 - 28.12.2012

I am not really good with scripting can you tell me the code please


Re: Destroying Vehicles - fordawinzz - 28.12.2012

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetTimerEx("AutoDestroy", 30000, false, "i", vehicleid);
    return 1;
}

forward AutoDestroy(vehicleid);
public AutoDestroy(vehicleid) return DestroyVehicle(vehicleid);



Re: Destroying Vehicles - megamind2067 - 28.12.2012

thank you