29.05.2017, 19:07
Quote:
As example
Код:
if(!IsPlayerInRangeOfPoint( playerid, 3.0, b_House[id][EnterX], b_House[id][EnterY], b_House[id][EnterZ])) return SendClientMessage(playerid, -1,"You aren't near house"); |
for(new id = 0; id <= MAX_HOUSES; id++)
{
if(!IsPlayerInRangeOfPoint( playerid, 3.0, b_House[id][EnterX], b_House[id][EnterY], b_House[id][EnterZ])) return SendClientMessage(playerid, -1,"You aren't near house");
}