SA-MP Forums Archive
All server vehicles keeps respawning - 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)
+--- Thread: All server vehicles keeps respawning (/showthread.php?tid=607224)



All server vehicles keeps respawning - bogushas - 16.05.2016

Hi, I lauched my gamemode after 1-2months break and strange thing happend. All unused server vehicles keeps, and keeps respawning. Does someone has any ideas why?

http://imgur.com/iZSnkM3 < gif how it looks like.
All vehicles mostly is created like this:
PHP код:
CreateVehicle(5222YZ0222222, -1); 



Re: All server vehicles keeps respawning - Sew_Sumi - 16.05.2016

Any SetVehicleToRespawn usage in your gamemode?

And how fast are they respawning?


Re: All server vehicles keeps respawning - BiosMarcel - 16.05.2016

If you haven't changed anything in your gamemode, do you probably have a new include / filterscript?


Re: All server vehicles keeps respawning - bogushas - 16.05.2016

I use only this include to vehicles - http://hastebin.com/rajebapava.coffee , I dont use SetVehicleToRespawn this function.


Re: All server vehicles keeps respawning - Sew_Sumi - 16.05.2016

How fast are they respawning, and are they doing that without a driver jumping in and out.

Along with have you got any filterscripts running?


Re: All server vehicles keeps respawning - bogushas - 16.05.2016

I dont have any filterscripts. I can't even get in, vehicles are respawning like crazy ( 0.1 - 1 second ).


Re: All server vehicles keeps respawning - bogushas - 16.05.2016

So any ideas anyone?


Re: All server vehicles keeps respawning - Sew_Sumi - 16.05.2016

Maybe they're not respawning, but you're having your Virtual World switched...


Re: All server vehicles keeps respawning - Firewire - 16.05.2016

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Maybe they're not respawning, but you're having your Virtual World switched...
Good suggestion!

Look through your script for anything that is called on a timer (unless you are pressing a key and it causes them to disappear and re-appear) for anything that: You can also do additional debugging and print in the console at a high level and if something prints in the console exactly when the vehicles are respawning then you've found the issue.

All the best!
Firewire.


Re: All server vehicles keeps respawning - Luicy. - 16.05.2016

Simply remove -1 from the last int in the CreateVeh