SA-MP Forums Archive
VirtualWorld - 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: VirtualWorld (/showthread.php?tid=299999)



VirtualWorld - cotyzor - 28.11.2011

I want to add an Virtual World at:

Код:
	    if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) //Faction no. 15 spawn
	    {
	        SetPlayerToTeamColor(playerid);
			SetPlayerPos(playerid, 2527.654052,-1679.388305,1015.498596);
			SetPlayerInterior(playerid,1);
			PlayerInfo[playerid][pInt] = 1;
	        return 1;
	    }
Can you help me please ?


Re: VirtualWorld - Jake__ - 28.11.2011

Yes..

Код:
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) //Faction no. 15 spawn
{
	SetPlayerToTeamColor(playerid);
	SetPlayerPos(playerid, 2527.654052,-1679.388305,1015.498596);
	SetPlayerInterior(playerid,1);
	SetPlayerVirtualWorld(playerid, WHICHVIRTUALWORLDYOUWANT);
	PlayerInfo[playerid][pVW] = Whichvirtualworldtyouwant;
	PlayerInfo[playerid][pInt] = 1;
	return 1;
}
https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld


Re: VirtualWorld - cotyzor - 28.11.2011

What is the maximum number of VirtualWorld ?


Re: VirtualWorld - Henkie - 28.11.2011

Quote:
Originally Posted by cotyzor
Посмотреть сообщение
What is the maximum number of VirtualWorld ?
I don't know if there is a limit, but you can just use 15, because the team is also number 15, so that's maybe a smart reminder.


Re: VirtualWorld - |_ⒾⓇⓄN_ⒹⓄG_| - 28.11.2011

Quote:
Originally Posted by ******
Посмотреть сообщение
There is a limit, but it's 4294967296, so I doubt you'll hit it any time soon...
How you know o.O
you know everything lol xD


Re: VirtualWorld - moadi - 28.11.2011

Quote:
Originally Posted by |_ⒾⓇⓄN_ⒹⓄG_|
Посмотреть сообщение
How you know o.O
you know everything lol xD
Reading is simple


Re: VirtualWorld - Egyptian Trooper - 29.11.2011

Quote:
Originally Posted by cotyzor
Посмотреть сообщение
What is the maximum number of VirtualWorld ?
Up-to the Infinity, No limits, I just recommend setting it to like for example 1400 and then get lower for 1339, 1338 etc.. in every world, to avoid bugs and messes of Virtual words.


Re: VirtualWorld - Thresholdold - 29.11.2011

I think henkie has the right idea... stick to a number that resembles your team, it's alot easier that way... I can't see any logic in making it a random number like 1339...