01.05.2012, 05:00
Ok, is that code you posted apart of your /enter command?
Cause that looks similar to have I have.
Please explain that
Like, what's that "A" for? I know that hInside is to tell that the player is inside the house.
Here is mine
Cause that looks similar to have I have.
Please explain that
pawn Код:
HouseInfo[i][hInsideA]
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);
}
}

