Different VWs for players - 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: Different VWs for players (
/showthread.php?tid=521499)
Different VWs for players -
Blast3r - 23.06.2014
Howdy guys. So right now I'm working onto a system for my script and I just realized that the vehicles/chars will collide during veh/char selection. And I know that solving the issue is using Virtual World. However, how should I make it that, if VW is taken by one player to set it to different VW? So I don't end up setting same VW for two players accidentaly?
Cheers.
Re: Different VWs for players -
Rittik - 23.06.2014
Can you be more specific ?
Re : Different VWs for players -
S4t3K - 23.06.2014
I suggest you to use as virtual world id the playerid + 1 : this way, you are absolutely sure that a player won't have the same virtual world as another.
And to reset it as default value, set the player virtual world's to 0.
Re: Different VWs for players -
Clad - 23.06.2014
I don't know but max VWs is 30 if I'm not mistaken, And I think you want to give them each one it own VW, I think the player base must not go more then 30.
Re: Different VWs for players -
Konstantinos - 23.06.2014
Quote:
Originally Posted by Clad
I don't know but max VWs is 30 if I'm not mistaken, And I think you want to give them each one it own VW, I think the player base must not go more then 30.
|
No, it's not:
https://sampwiki.blast.hk/wiki/Limits
Use S4t3K's method, it's the best.
Re: Re : Different VWs for players -
Blast3r - 23.06.2014
Quote:
Originally Posted by S4t3K
I suggest you to use as virtual world id the playerid + 1 : this way, you are absolutely sure that a player won't have the same virtual world as another.
And to reset it as default value, set the player virtual world's to 0.
|
That's a great idea, thanks mate!
Re: Different VWs for players -
Clad - 23.06.2014
Quote:
Originally Posted by Konstantinos
|
Thanks Konstantinos I didn't know that 0.3z all that VWs
, In this case yes better use S4t3k way since it won't make people gets the same VW