SePlayerVirtualWorld - 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: SePlayerVirtualWorld (
/showthread.php?tid=609797)
SePlayerVirtualWorld -
Ax3l123 - 16.06.2016
Well i'm thinking of creating a dialog where the player can choose a car to test but i would like to create that in diferent virtual worlds.
for exemple
player 1 get's vw 1
player 2 get's vw 2
if player 1 goes back to vw 0
player 3 get's vw 1
i hope you did understand what i have just said .
is it possible , if yes , could you show me how
Re: SePlayerVirtualWorld -
AaronJ - 16.06.2016
Quote:
Originally Posted by Ax3l123
Well i'm thinking of creating a dialog where the player can choose a car to test but i would like to create that in diferent virtual worlds.
for exemple
player 1 get's vw 1
player 2 get's vw 2
if player 1 goes back to vw 0
player 3 get's vw 1
i hope you did understand what i have just said .
is it possible , if yes , could you show me how
|
Of course is possible, you should store somewhere the vw in use an then choose the lowest value avalilable.
Or....... You can send the player in a vw that is equal to "playerid + 1" so you don't use sequential VWs but you are sure that you don't have two or more players in the same VW.
Re: SePlayerVirtualWorld -
Ax3l123 - 16.06.2016
Quote:
Originally Posted by AaronJ
Of course is possible, you should store somewhere the vw in use an then choose the lowest value avalilable.
Or....... You can send the player in a vw that is equal to "playerid + 1" so you don't use sequential VWs but you are sure that you don't have two or more players in the same VW.
|
Thank you for the playerid+1 ideea , that's something i have't thought .
Re: SePlayerVirtualWorld -
AaronJ - 16.06.2016
Quote:
Originally Posted by Ax3l123
Thank you for the playerid+1 ideea , that's something i have't thought .
|
No problem dude, happy to help