SA-MP Forums Archive
No car spawn - 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: No car spawn (/showthread.php?tid=32549)



No car spawn - Fredling - 31.03.2008

Yo, I wounder how to add cars, that doesn't respawn after a while, just respawn when they crash etc.

AddStaticVehicle(modelid, Floatpawn_x, Floatpawn_y,Floatpawn_z, Float:angle, color1, color2)
AddStaticVehicle(modelid, Floatpawn_x, Floatpawn_y,Floatpawn_z, Float:angle, color1, color2, respawn_delay)
CreateVecicle(modelid, Float, Float:y,Float:z, Float:angle, color1, color2, respawn_delay)
Which one to use, and how?


I found this in a script:

CreateVehicle(vehicleid,X,Y,Z,Angle,-1,-1,-1)

Will that make it not respawn?
And, can i use that with AddStaticVehicleEx
AND, Whats the diff if i use AddStaticVehicleEx or CreateVehicle

Thanx // FredlinG


Re: No car spawn - BioFreeze - 31.03.2008


Use AddstaticVehicleEx(modelid, Floatpawn_x, Floatpawn_y,Floatpawn_z, Float:angle, color1, color2, respawn_delay);

The Respawndelay is in seconds.

You might try to look at the wiki page , next time


Re: No car spawn - Fredling - 31.03.2008

Yea i know, i just woundered if it was any other way?
Or do i have to do like

Use AddstaticVehicleEx(modelid, Floatpawn_x, Floatpawn_y,Floatpawn_z, Float:angle, color1, color2, 1000000000000000000000000000000000000);

??


Re: No car spawn - BioFreeze - 31.03.2008

Quote:
Originally Posted by Fredling
Yea i know, i just woundered if it was any other way?
Or do i have to do like

Use AddstaticVehicleEx(modelid, Floatpawn_x, Floatpawn_y,Floatpawn_z, Float:angle, color1, color2, 1000000000000000000000000000000000000);

??
Well I think 1000000000000000000000000000000000000 is like a bit to much , you better set it to 2000 or something it will be far more then enough. Secondly , why make it hard for yourself? You simply have to ad 1 extra number and voila.

And why do you refuse to look at the wiki page if I may ask?

https://sampwiki.blast.hk/wiki/CreateVehicle


Re: No car spawn - Fredling - 31.03.2008

Belive me, I have looked there maaaaaany times, but i doesn't get any smarter of that...
Well, 2000 secounds isnt much...
I dont want the car to respawn AT ALL.
I want it to be like, i can park my car at some place, and then go on again the day after, and its still there.


Re: No car spawn - Jamould - 09.07.2009

Yeah Ive been wanting to do this as well


Re: No car spawn - lavamike - 09.07.2009

Than set the respawn delay to -1

The vehicle will then only respawn if you manually respawn it (i think it's like SetVehicleToRespawn(vehicleid) or if it blows up.


Re: No car spawn - Jamould - 09.07.2009

Thanks Ive already tried this but the cars still seem to respawn when you get to a certain distance. They also respawn if you get in another car


Re: No car spawn - lavamike - 09.07.2009

That's strange I don't remember this happening. AddStaticVehicle has no respawn delay so try that and see if it works.


Re: No car spawn - Lewwy - 09.07.2009

pawn Код:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, -1);
Right?