SA-MP Forums Archive
Vehicle streaming HELP! [rep++] - 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: Vehicle streaming HELP! [rep++] (/showthread.php?tid=491148)



Vehicle streaming HELP! [rep++] - AntonioCroatia - 29.01.2014

I saw this on some server:
When you are in some range with vehicle, it will create yourself, when you out of the range vehicle is going to delete. What is "rising" samp limit of 2000 vehicles. On my server there is about 1200 scripted vehicles for doing jobs and so on, Players can have 4 houses with 10 vehicles (what is 40 max per player) but average is 30, When I have 50 players online, that are 2700 vehicles loaded. So I saw this on some server:

When you far from vehicles


When you come closer:



Re: Vehicle streaming HELP! [rep++] - jiwan - 29.01.2014

store the last position of vehicles, use
wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint‎

when player comes near vehicles, make them spawn, when player is far from vehicles, de-spawn or delete vehicles simply.


Re: Vehicle streaming HELP! [rep++] - Red_Dragon. - 29.01.2014

Adjust your streaming distance. Also check if it's occurring to all the players or is it just you.


Re: Vehicle streaming HELP! [rep++] - AntonioCroatia - 29.01.2014

Quote:
Originally Posted by jiwan
Посмотреть сообщение
store the last position of vehicles, use
wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint‎

when player comes near vehicles, make them spawn, when player is far from vehicles, de-spawn or delete vehicles simply.
Yeah that I mean to make, but when you come closer to vehicle position, it won't create again, If I will make it with saving to log or something, it will lagg my GM and use a lot of CPU

Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
Adjust your streaming distance. Also check if it's occurring to all the players or is it just you.
I think they did that...