25.02.2011, 18:24
Hi, can i help you? This is the code for virtual worlds
This code should work for what you are trying to do.
pawn Код:
SetPlayerVirtualWorld(playerid, 5); // see players in virtual world 5
SetPlayerVirtualWorld(playerid, 0); // see players in the ordinary world
pawn Код:
//enterammunation
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 2, -1088.9142,2189.1768,87.5694))
{
SetPlayerInterior(i, 6);
SetPlayerPos(i, -595.6460,2016.9888,77.0469 );
SetPlayerVirtualWorld(playerid, 5); //Added line for virtual world - this will enable the person to see people in the minigame only
}
}
//exitammunation
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 2, -595.6460,2016.9888,77.0469))
{
Streamer_UpdateEx(playerid, -1088.9142,2189.1768,87.5694);
SetPlayerInterior(i, 0);
SetPlayerPos(i, -1088.9142,2189.1768,87.5694 );
SetPlayerVirtualWorld(playerid, 0); //Added line for virtual world - this will enable the player to see all players that are in the ordinary world
}
}