27.07.2016, 20:07
PHP код:
stock GetHouseID( playerid )
{
new id;
id = -255;
for ( new i = 0; i < MAX_HOUSES; i++ )
if (IsPlayerInRangeOfPoint( playerid, 2.0, GetGVarFloat( "h_X", i ), GetGVarFloat( "h_Y", i ), GetGVarFloat( "h_Z", i ))) id = i;
print(id);
return id;
}