Cars disappearing very fast - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cars disappearing very fast (
/showthread.php?tid=139495)
Cars disappearing very fast -
Juanxz - 05.04.2010
When we exited a car...to check a car park...we didn't find our car. It disappeared very fast.
How can I fix this?
Server Cfg:
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
Re: Cars disappearing very fast -
Last_Stand_Guardian - 05.04.2010
This isn't in the server.cfg :O
Look in your script:
AddStaticVehicleEx and CreateVehicle --> Both are using respawn_delay :O
I think you've put this delay on 0 O.o
Re: Cars disappearing very fast -
Hiddos - 05.04.2010
I'm actually guessing that if you put the delay on 0 it doesn't respawns unless it's destroyed.
Anyways, the delay between exiting and re-spawning are in milliseconds(mS), 1000mS = 1S. So to respawn every 2 minutes, you'd have a delay of 120000(120 seconds = 2 minutes).
Re: Cars disappearing very fast -
Last_Stand_Guardian - 05.04.2010
Hm I think the respawn delays of CreateVehicle and AddStaticVehicleEx are exceptions xD
They are expressed in seconds not milliseconds :O ^^
Re: Cars disappearing very fast -
Jay420 - 05.04.2010
Do you use
AddStaticVehicle or
AddStaticVehicleEx in your script to spawn cars?
E: Woah I was slow..
Re: Cars disappearing very fast -
Juanxz - 05.04.2010
Quote:
Originally Posted by Last_Stand_Guardian
This isn't in the server.cfg :O
Look in your script:
AddStaticVehicleEx and CreateVehicle --> Both are using respawn_delay :O
I think you've put this delay on 0 O.o
|
That's only part of my server cfg. I've heard of cars and stream so I thought it could be connected.
Quote:
Originally Posted by Jay420
Do you use AddStaticVehicle or AddStaticVehicleEx in your script to spawn cars?
E: Woah I was slow..
|
I'm using BOTH
AddStaticVehicle and
AddStaticVehicleEx in my gamemode.
Here's an example of one common AddStaticVehicleEx I use.
AddStaticVehicleEx(598,1400.6943,405.4911,19.5034, 246.7988,77,77, 7200000);//Sherrif Cruiser