SA-MP Forums Archive
Need some tips About Player Virtual world - 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: Need some tips About Player Virtual world (/showthread.php?tid=582404)



Need some tips About Player Virtual world - SpikY_ - 20.07.2015

Hellu,
I want some tips in player Virtual world, Let me explain What i mean.
Look at the picture below, There are 4 spawn ( cars ). I want to make it like, when player press spawn button, put them in those 4 vehicles. If the 4 spawns have been taken place by some players so set another virtualworld for the players who spawned after first 4 players. So that the spawn should not be jammed with the players.
Sorry, I have no words to describe what i'm saying currently lol



I hope you guys got it what i mean.


Re: Need some tips About Player Virtual world - nezo2001 - 20.07.2015

On the top
PHP код:
new virtualWorld 0;
new 
cars 0
Under spawn cars command or whatever code
PHP код:
cars++;
if(
cars == 4)
{
    
virtualWorld++;
    
cars 0;
    
SetVehicleVirtualWorld(vehicleidvirtualWorld);
}
else
{
    
SetVehicleVirtualWorld(vehicleidvirtualWorld);

And add your other code with it