SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 20/11/2016, 10:54 AM   #1
adri[4]Life
Guest
 
Posts: n/a
Default Need Help ! On Making Vehicle respawn delay

Hi Guys,
How To Add Respawn Delay 100 Second For Vehicles Like This
Code:
CreateVehicle(520, 1119.6509, 1926.4175, 17.7406, 93.0000, -1, -1, 100);
  Reply With Quote
Old 20/11/2016, 11:27 AM   #2
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,918
Reputation: 258
Default Re: Need Help ! On Making Vehicle respawn delay

Code:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, addsiren=0)
modelid	The model for the vehicle.
Float:X	The X coordinate for the vehicle.
Float:Y	The Y coordinate for the vehicle.
Float:Z	The Z coordinate for the vehicle.
Float:angle	The facing angle for the vehicle.
color1	The primary color ID.
color2	The secondary color ID.
respawn_delay	The delay until the car is respawned without a driver in seconds. Using -1 will prevent the vehicle from respawning.
addsiren	Added in 0.3.7; will not work in earlier versions. Has a default value 0. Enables the vehicle to have a siren, providing the vehicle has a horn.
__________________
actor_plus - v5.0.2
I'm a goner, somebody catch my breath,
I'm a goner, somebody catch my breath
Dayrion is offline   Reply With Quote
Old 20/11/2016, 11:38 AM   #3
iamjems
Big Clucker
 
iamjems's Avatar
 
Join Date: Aug 2016
Location: Croatia
Posts: 123
Reputation: 7
Default Re: Need Help ! On Making Vehicle respawn delay

Your code should work fine...
iamjems is offline   Reply With Quote
Old 20/11/2016, 12:14 PM   #4
adri[4]Life
Guest
 
Posts: n/a
Default Re: Need Help ! On Making Vehicle respawn delay

Quote:
Originally Posted by Dayrion View Post
Code:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, addsiren=0)
modelid	The model for the vehicle.
Float:X	The X coordinate for the vehicle.
Float:Y	The Y coordinate for the vehicle.
Float:Z	The Z coordinate for the vehicle.
Float:angle	The facing angle for the vehicle.
color1	The primary color ID.
color2	The secondary color ID.
respawn_delay	The delay until the car is respawned without a driver in seconds. Using -1 will prevent the vehicle from respawning.
addsiren	Added in 0.3.7; will not work in earlier versions. Has a default value 0. Enables the vehicle to have a siren, providing the vehicle has a horn.
Can u Explain please? i need automatic Vehicles respawn every 100 seconds Can Someone Helpme,?

Last edited by adri[4]Life; 20/11/2016 at 07:07 PM.
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Question] Vehicle Respawn Delay Maxips2 Scripting Help 3 22/05/2013 10:29 AM
Transport respawn delay Frapsy Scripting Help 4 23/11/2012 06:50 PM
Vehicle destruction respawn delay matejdro Scripting Help 10 30/08/2011 12:10 AM
AddVehicleEx and CreateVehicle respawn delay beckzy Bug Reports 1 02/01/2011 09:55 AM
Respawn cars delay. SeQualX Help Archive 10 07/12/2010 07:21 PM


All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.