SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 27/03/2011, 10:39 AM   #1
Compton
Big Clucker
 
Compton's Avatar
 
Join Date: Apr 2009
Posts: 159
Reputation: 6
Default Vehicle Respawn

Hello, I have a question about vehicle respawning. On My server the vehicles are respawning really fast and the players are complaining about it, is there some way to delete this respawn thing or atleast make the time of the respawn longer?

-thank You.
__________________

.:: West Coast Life Roleplay ::.
Forum: www.west-life.forummo.com/forum
IP Adress: 91.121.97.26:7847
Unique Script, Join Today!
Compton is offline  
Old 27/03/2011, 10:47 AM   #2
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,153
Reputation: 215
Default Re: Vehicle Respawn

pawn Code:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);

AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);

AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);
DRIFT_HUNTER is offline  
Old 27/03/2011, 10:49 AM   #3
Compton
Big Clucker
 
Compton's Avatar
 
Join Date: Apr 2009
Posts: 159
Reputation: 6
Default Re: Vehicle Respawn

umm can I ask what do I need to add in the CreateVehicle? Cause I only have the AddStaticVehicle thing, and do I have to add these lines to each car I made?
__________________

.:: West Coast Life Roleplay ::.
Forum: www.west-life.forummo.com/forum
IP Adress: 91.121.97.26:7847
Unique Script, Join Today!
Compton is offline  
Old 27/03/2011, 10:49 AM   #4
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default Re: Vehicle Respawn

There is respawn_delay parameter in CreateVehicle and AddStaticVehicleEx.

You have to use one of these instead of AddStaticVehicle.
MadeMan is offline  
Old 27/03/2011, 11:05 AM   #5
Compton
Big Clucker
 
Compton's Avatar
 
Join Date: Apr 2009
Posts: 159
Reputation: 6
Default Re: Vehicle Respawn

Ok thank you, and could someone explain me how the respawn_delay works, I mean how to type in the number of it, and if its in minutes/seconds or whatever.
__________________

.:: West Coast Life Roleplay ::.
Forum: www.west-life.forummo.com/forum
IP Adress: 91.121.97.26:7847
Unique Script, Join Today!
Compton is offline  
Old 27/03/2011, 11:07 AM   #6
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default Re: Vehicle Respawn

http://wiki.sa-mp.com/wiki/AddStaticVehicleEx

http://wiki.sa-mp.com/wiki/CreateVehicle
MadeMan is offline  
Old 27/03/2011, 11:30 AM   #7
Compton
Big Clucker
 
Compton's Avatar
 
Join Date: Apr 2009
Posts: 159
Reputation: 6
Default Re: Vehicle Respawn

Ok thank you guys, yall helped me alot. I Fixed the problem and all works good now
__________________

.:: West Coast Life Roleplay ::.
Forum: www.west-life.forummo.com/forum
IP Adress: 91.121.97.26:7847
Unique Script, Join Today!
Compton is offline  
 

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
Vehicle never respawn ?! Dark734 Help Archive 2 04/12/2010 08:17 AM
vehicle respawn Chris_Mcgrifthd Help Archive 2 18/11/2010 10:44 PM
Vehicle respawn Aguylera Help Archive 3 31/10/2010 12:52 PM
Vehicle Respawn martynas Help Archive 4 30/09/2010 10:57 AM
[HELP] Vehicle respawn addinol Help Archive 3 24/02/2010 06:07 PM


All times are GMT. The time now is 05:11 PM.


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