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