06.12.2015, 13:04
Try Change
to
Код:
else if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[hid][XEnt],HouseInfo[hid][YEnt],HouseInfo[hid][ZEnt])) //enter house! { if((pinfo[playerid][ID] != HouseInfo[hid][HOwnerID]) && (HouseInfo[hid][HOwned]) == 1) return SendClientMessage(playerid, -1, ""COL_RED"SERVER"COL_WHITE":You cant enter the house since it's not yours!"); EnterHouse(playerid,hid); }
Код:
else if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[hid][XEnt],HouseInfo[hid][YEnt],HouseInfo[hid][ZEnt])) //enter house! { if(pinfo[playerid][ID] != HouseInfo[hid][HOwnerID]) { if(HouseInfo[hid][HOwned]) == 1) { SendClientMessage(playerid, -1, ""COL_RED"SERVER"COL_WHITE":You cant enter the house since it's not yours!"); } } else { if(HouseInfo[hid][HOwned]) == 1) { EnterHouse(playerid,hid); } } }