Non Static Vehicle - 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: Non Static Vehicle (
/showthread.php?tid=310292)
Non Static Vehicle -
lamarr007 - 11.01.2012
Hi, i preparing dialog for vehicles
I using this fuction :
pawn Код:
CreateVehicle(581, X, Y, Z + 2.0, Angle + 90.0, c1, c2, 60);
After 1 minute, vehicle respawn at position, on I created this vehicle.
I want to create vehicle, but if it respawn, itґll delete.
How can I do this ?
Re: Non Static Vehicle -
FuTuяe - 11.01.2012
pawn Код:
public OnVehicleSpawn(vehicleid)
{
DestroyVehicle(vehicleid);
return 1;
}
Re: Non Static Vehicle -
lamarr007 - 11.01.2012
Thanks, but it destroy every cars (AddStaticVehicle too). I want to delete only vehicles spawned by player