Auto car spawn
#6

Read these:
https://sampwiki.blast.hk/wiki/CreateVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx

NOTE: How these both have a respawn_delay parameter, you just need to change this to what you want.
For example, your line would look something like this:
pawn Код:
AddStaticVehicleEx(522, 124.1, 593.24, 0.32, 180.0, 14, 0, 30);
Note how the number at the end is 30? The final number represents the respawn_delay parameter. So if you don't want the car to respawn, change it to -1. If you want it to respawn in 2 minutes or so, (2 minutes = 60 seconds x 2 = 120) you would change it to 120.

Example of creating a car that NEVER respawns:
pawn Код:
AddStaticVehicleEx(522, 12, 412, 14.2, 150.1, 155, 252, -1);
Example of creating a car that respawns in 6 MINUTES.
1 Minute = 60 seconds
6 Minutes = 60 seconds x 6
60 x 6 = 360
pawn Код:
AddStaticVehicleEx(522, 12, 412, 14.2, 150.1, 155, 252, 360);
Reply


Messages In This Thread
Auto car spawn - by PaulDinam - 22.09.2012, 11:59
Re: Auto car spawn - by Red_Dragon. - 22.09.2012, 12:05
Re: Auto car spawn - by PaulDinam - 22.09.2012, 12:42
Re: Auto car spawn - by c0smin - 22.09.2012, 12:44
Re: Auto car spawn - by PaulDinam - 22.09.2012, 12:50
Re: Auto car spawn - by clarencecuzz - 22.09.2012, 13:26
Re: Auto car spawn - by PaulDinam - 22.09.2012, 13:32
Re: Auto car spawn - by clarencecuzz - 22.09.2012, 13:43
Re: Auto car spawn - by PaulDinam - 22.09.2012, 13:59

Forum Jump:


Users browsing this thread: 1 Guest(s)