House entering problem
#4

Update: Okay so I still have the problem however I made a command

pawn Код:
dcmd_aenter(playerid, params[])
{
    #pragma unused params
    if(PlayerAccount[playerid][Admin] >= 1)
    {
        for(new i = 0; i < sizeof(HouseInfo); i++)
        {
            if(IsPlayerInRangeOfPoint(playerid,4.0,HouseInfo[i][SpawnX],HouseInfo[i][SpawnY],HouseInfo[i][SpawnZ]))
            {
                SetPlayerPos(playerid,Int[HouseInfo[i][Interior]][PosX],Int[HouseInfo[i][Interior]][PosY],Int[HouseInfo[i][Interior]][PosZ]);
                SetPlayerInterior(playerid,Int[HouseInfo[i][Interior]][Interior]);
                SetPlayerVirtualWorld(playerid,HouseInfo[i][World]);
                HouseEntered[playerid] = i;
                printf("%s entered house id: %d",pname,HouseEntered[playerid]);
            }
        }
    }
    return 1;
}
I removed the locked part as for some reason if that was there I got it as if it was return 0; (Server Unknown Command), I now tried to do that with the OnPlayerKeyStateChange, however I had no luck whatsoever. It still came with the same as before, however HouseID 0 is still accessible but that's the only one.
Reply


Messages In This Thread
House entering problem - by oliverrud - 15.07.2010, 21:17
Re: House entering problem - by ikey07 - 15.07.2010, 21:26
Re: House entering problem - by oliverrud - 15.07.2010, 21:29
Re: House entering problem - by oliverrud - 15.07.2010, 22:30
Re: House entering problem - by [HiC]TheKiller - 15.07.2010, 23:44
Re: House entering problem - by oliverrud - 15.07.2010, 23:53
Re: House entering problem - by oliverrud - 16.07.2010, 09:00

Forum Jump:


Users browsing this thread: 2 Guest(s)