/enterhouse bugged
#1

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?
Reply
#2

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

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,....)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)