28.08.2011, 20:24
I maked some changes on /find command and i add this :
if player is in house the checkpoint appear at the entranceX,Y,Z and if player is not in house the player appear normaly. But i have a problem
the normal way works but when im in house the checkpoint appear wrong. I need this fast....
Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerInfo[playerid][pIsAtHouse] == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(giveplayerid, X,Y,Z);
SetPlayerCheckpoint(playerid, X,Y,Z, 6);
}
else if(PlayerInfo[playerid][pIsAtHouse] >= 1)
{
SetPlayerCheckpoint(giveplayerid, HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancex], 6);
}
}
the normal way works but when im in house the checkpoint appear wrong. I need this fast....



and the entrace of the house is in LS..