30.11.2012, 14:38
i made something like that..
does not work..
does not work..
Код:
forward isOnHouse(playerid); public isOnHouse(playerid) { for(new h = 0; h < sizeof(HouseInfo); h++) { if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez])) { if(standingOnHouse[playerid] == 0) { nearHouse[playerid] = h; standingOnHouse[playerid] = 1; HouseEnter[h][playerid] = CreateDynamicCP(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez], 1.5, -1, -1, -1, 100.0); } } } return 1; }