No car spawn
#1

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
Reply
#2


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
Reply
#3

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);

??
Reply
#4

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
Reply
#5

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.
Reply
#6

Yeah Ive been wanting to do this as well
Reply
#7

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.
Reply
#8

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
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 8 Guest(s)