18.01.2012, 02:54
The object must have a position. Assuming that
is the object's ID, first get the position of the object with GetObjectPos
and thereafter check with IsPlayerInRangeOfPoint
Код:
item[i]
Код:
new Float:x, Float:y, Float:z; GetObjectPos(item[i], x, y, z);
Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) { }