vehicle destroy on respawn samp - 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: vehicle destroy on respawn samp (
/showthread.php?tid=538039)
vehicle destroy on respawn samp -
MA_proking - 19.09.2014
Is this possible to destroy vehicle
[CreateVehicle() ] when they respawn.
Re: vehicle destroy on respawn samp -
dusk - 19.09.2014
Yes. Just store the vehicle ID which is returned by CreateVehicle into a variable and destroy it OnVehicleSpawn. OnVehicleSpawn is actually called when a vehicle RE-spwns.
Re: vehicle destroy on respawn samp -
ReD_HunTeR - 19.09.2014
pawn Код:
CreateVehicle(vehicleid, .......), Destroyable[vehicleid] = 1;
public OnVehicleSpawn(vehicleid)
{
if(Destroyable[vehicleid] == 1)
{
DestroyVehicle(vehicled);
}
return 1;
}