Pickup point, exit/enter point - Virtual worlds
#5

pawn Code:
else if(IsPlayerInRangeOfPoint(playerid,3.0,1481.0696,-1771.6183,18.7958)) //City Hall
            {
                SetPlayerVirtualWorld(playerid, 2);
                SetPlayerInterior(playerid, 3);
                SetPlayerPos(playerid, 384.5713,173.6477,1008.3828);
                SetPlayerFacingAngle(playerid, 90.0000);
                GameTextForPlayer(playerid, "~w~Welcome to City Hall", 5000, 1);
                PlayerInfo[playerid][pInt] = 3;
                SetCameraBehindPlayer(playerid);
            }
pawn Code:
else if(IsPlayerInRangeOfPoint(playerid,3.0,384.3424,173.8664,1008.3828)) //Cityhall
            {
            if(GetPlayerVirtualWorld(playerid) == 2)
            {
                SetPlayerInterior(playerid, 0);
                        SetPlayerVirtualWorld(playerid, 0);
                SetPlayerPos(playerid, 1481.0366,-1769.9780,18.7958);
                PlayerInfo[playerid][pInt] = 0;
                SetPlayerFacingAngle(playerid, 0.0000);
                SetCameraBehindPlayer(playerid);
            }
try this
when you are out of interior use virtual world 0
Reply


Messages In This Thread
Pickup point, exit/enter point - Virtual worlds - by Chivava - 27.12.2010, 11:11
Re: Pickup point, exit/enter point - Virtual worlds - by akis_tze - 27.12.2010, 11:16
Re: Pickup point, exit/enter point - Virtual worlds - by akis_tze - 27.12.2010, 11:17
Re: Pickup point, exit/enter point - Virtual worlds - by Chivava - 27.12.2010, 11:48
Re: Pickup point, exit/enter point - Virtual worlds - by akis_tze - 27.12.2010, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)