Help plase how to make vehicle with no respawn after player leaves it
#1

Guys what function is for create vehicle, what will never respawn when player leaves it? thx
Reply
#2

Just create a vehicle,it will not respawn if you don't set it to do so.
Код:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
Set the respawn_delay to -1,so it will prevent respawning
Reply
#3

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

Creates a vehicle, using -1 as respawn_delay, it will prevent the vehicle from re-spawning.

---

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

Adds a static vehicle, it does not support any parameter for respawn delay so it won't re-spawn back.

---

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

Adds a static vehicle; however, it uses respawn_delay which if it is set to -1, then it won't re-spawn the vehicle back.
Reply
#4

EDIT: Nevermind, to slow..
Reply
#5

okay, and for what is used this function?
AddStaticVehicleEx
Reply
#6

Read @Konstantinos's post.
Reply
#7

So StaticVehicleEx with set -1, when destroying vehicle, it wont respawn anymore?
and CreateVehicle with -1, destroying respawn, when players leaves it, but when it got destroyed it respawns?
Reply
#8

Just can't understand difference between AddStaticVehicleEx and CreateVehicle
Reply
#9

Quote:
Originally Posted by SA-MP Wiki
AddStaticVehicleEx -> Adds a 'static' vehicle (models are pre-loaded for players)to the gamemode. Can only be used when the server first starts (under OnGameModeInit).
Quote:
Originally Posted by SA-MP Wiki
CreateVehicle -> Creates a vehicle in the world. Can be used in place of AddStaticVehicleEx at any time in the script.
They're explained perfectly fine in the SA-MP Wiki.
Reply
#10

Okay, so for loading PD's vehicles is better AddStaticVehicleEx I guess, CreateVehicle is more likely for commands. ^^ thanks dude
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)