18.08.2017, 10:26
Remove this part
The loop is checking for every house and it is obvious that player will be near to only one house.
And add after the loop:
PHP код:
else //If the player is not in range of the house that is in loop.
{
NearHouse=0;
SendClientMessage(playerid, COLOR_WHITE, "You are not near a house.");
return 1;
}
And add after the loop:
PHP код:
if(NearHouse == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "You are not near a house.");
}