Help plase how to make vehicle with no respawn after player leaves it -
Riwerry - 07.11.2013
Guys what function is for create vehicle, what will never respawn when player leaves it? thx
Re: Help plase how to make vehicle with no respawn after player leaves it -
Tagathron - 07.11.2013
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
Re: Help plase how to make vehicle with no respawn after player leaves it -
Konstantinos - 07.11.2013
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.
Re: Help plase how to make vehicle with no respawn after player leaves it -
Chrillzen - 07.11.2013
EDIT: Nevermind, to slow..
Re: Help plase how to make vehicle with no respawn after player leaves it -
Riwerry - 07.11.2013
okay, and for what is used this function?

AddStaticVehicleEx
Re: Help plase how to make vehicle with no respawn after player leaves it -
Chrillzen - 07.11.2013
Read @Konstantinos's post.
Re: Help plase how to make vehicle with no respawn after player leaves it -
Riwerry - 07.11.2013
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?
Re: Help plase how to make vehicle with no respawn after player leaves it -
Riwerry - 07.11.2013
Just can't understand difference between AddStaticVehicleEx and CreateVehicle
Re: Help plase how to make vehicle with no respawn after player leaves it -
Konstantinos - 07.11.2013
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.
Re: Help plase how to make vehicle with no respawn after player leaves it -
Riwerry - 07.11.2013
Okay, so for loading PD's vehicles is better AddStaticVehicleEx I guess, CreateVehicle is more likely for commands. ^^ thanks dude