How to create vehicle that will never respawn? - 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: How to create vehicle that will never respawn? (
/showthread.php?tid=402397)
How to create vehicle that will never respawn? -
ShawtyyMacJunior - 26.12.2012
Title says it all. Please help.
Re: How to create vehicle that will never respawn? -
jNkk - 26.12.2012
http://lmgtfy.com/?q=sa-mp+no-respawning+car
Really.. have you heard of ******? There are lots of topics about it
Re: How to create vehicle that will never respawn? -
DaRk_RaiN - 26.12.2012
At the top of your script
Fill the parameters,and create the vehicle via a command or what ever
pawn Код:
Veh = CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
If you don't know whats this put it at the bottom of your script.
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
DestroyVehicle(Veh);
return 1;
}
Re: How to create vehicle that will never respawn? -
Sydcul - 26.12.2012
Eh, no, when any vehicle gets destroyed it destroys Veh, so if i have a plane and a car, if the plane explodes, the car gets removed?!? I asked this yesterday and i got an answer:
https://sampforum.blast.hk/showthread.php?tid=402260
Hope it helped, and please REP Lynn if it did, as it's his solution, and me too maybe because i posted this