SA-MP Forums Archive
/enterhouse bugged - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /enterhouse bugged (/showthread.php?tid=369437)



/enterhouse bugged - Dare Devil..... - 17.08.2012

pawn Код:
CMD:enterhouse(playerid, params[])
{
    for(new i = 0; i < MAX_HOUSES;i++)
    {
        if(IsPlayerInRangeOfPoint(playerid,2.5,HInfo[i][XPos],HInfo[i][YPos],HInfo[i][ZPos]))
        {
            if(HInfo[i][locked] == 0)
            {
                SetPlayerVirtualWorld(playerid,playerid);
                SetPlayerPos(playerid,2496.049804,-1695.238159,1014.742187);
            }
        }
        return 1;
    }
    return 0;
}
This is my /enterhouse but I wanted to ask that when a player enters it he gose into air can I fix it?


Re: /enterhouse bugged - Sandiel - 17.08.2012

1. Your SetPlayerVirtualWorld is messed up
2. You don't have a SetPlayerInterior in there


Re: /enterhouse bugged - kbalor - 17.08.2012

Quote:
Originally Posted by Dare Devil.....
Посмотреть сообщение
pawn Код:
CMD:enterhouse(playerid, params[])
{
    for(new i = 0; i < MAX_HOUSES;i++)
    {
        if(IsPlayerInRangeOfPoint(playerid,2.5,HInfo[i][XPos],HInfo[i][YPos],HInfo[i][ZPos]))
        {
            if(HInfo[i][locked] == 0)
            {
                SetPlayerVirtualWorld(playerid,playerid);
                SetPlayerPos(playerid,2496.049804,-1695.238159,1014.742187);
            }
        }
        return 1;
    }
    return 0;
}
This is my /enterhouse but I wanted to ask that when a player enters it he gose into air can I fix it?
what you mean it goes into air? can you add more details?

SetPlayerVirtualWorld(playerid, -1) or specified virtual world of the house. and you forgot to use SetPlayerInterior(playerid,....)