[Houses] Virtual Worlds
#3

Ok, is that code you posted apart of your /enter command?

Cause that looks similar to have I have.

Please explain that
pawn Код:
HouseInfo[i][hInsideA]
Like, what's that "A" for? I know that hInside is to tell that the player is inside the house.

Here is mine

pawn Код:
for(new i = 0; i < sizeof(HouseInfo); i++)
        {
            if (PlayerToPoint(2.0, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
            {
                ////printf("Found House :%d",i);
                if(PlayerInfo[playerid][pHousekey] == i || HouseInfo[i][hLock] == 0 || AdminDuty[playerid] == 1)
                {
                    SetPlayerFacingAngle( playerid,0);
                    //TogglePlayerControllable(playerid, 0);
                    SetPlayerInterior(playerid,HouseInfo[i][hInt]);
                    if(i == 28) SetPlayerVirtualWorld(playerid, 88888);
                    else SetPlayerVirtualWorld(playerid, HouseInfo[i][hWorld]);
                //  Pause(playerid);
                    DOO_SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
                    PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
                    PlayerInfo[playerid][pLocal] = i;
                    HouseEntered[playerid] = i;
                    Streamer_Update(playerid);
                }
                else GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
            }
        }
Reply


Messages In This Thread
[Houses] Virtual Worlds - by X3nZ - 01.05.2012, 04:46
Re: [Houses] Virtual Worlds - by Jack_Leslie - 01.05.2012, 04:56
Re: [Houses] Virtual Worlds - by X3nZ - 01.05.2012, 05:00
Re: [Houses] Virtual Worlds - by Jack_Leslie - 01.05.2012, 05:01
Re: [Houses] Virtual Worlds - by X3nZ - 01.05.2012, 05:03
Re: [Houses] Virtual Worlds - by Jack_Leslie - 01.05.2012, 05:05
Re: [Houses] Virtual Worlds - by X3nZ - 01.05.2012, 05:07
Re: [Houses] Virtual Worlds - by Jack_Leslie - 01.05.2012, 05:08
Re: [Houses] Virtual Worlds - by X3nZ - 01.05.2012, 05:14
Re: [Houses] Virtual Worlds - by Jack_Leslie - 01.05.2012, 05:23

Forum Jump:


Users browsing this thread: 1 Guest(s)