15.07.2010, 22:30
Update: Okay so I still have the problem however I made a command
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.
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;
}