Define SetPlayerPos function
#4

Hi, can i help you? This is the code for virtual worlds

pawn Код:
SetPlayerVirtualWorld(playerid, 5); // see players in virtual world 5
SetPlayerVirtualWorld(playerid, 0); // see players in the ordinary world
This code should work for what you are trying to do.

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                  


        }
    }
Reply


Messages In This Thread
Define SetPlayerPos function - by BlackWolf120 - 22.12.2010, 21:47
Re: Define SetPlayerPos function - by Haydz - 22.12.2010, 21:54
Re: Define SetPlayerPos function - by BlackWolf120 - 22.12.2010, 22:00
Re: Define SetPlayerPos function - by lewismichaelbbc - 25.02.2011, 18:24
Re: Define SetPlayerPos function - by BlackWolf120 - 25.02.2011, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)