29.04.2011, 08:35
Can't you just do a range check on the object? Or you need something more than that?
Problem is different sized objects
pawn Код:
IsPlayerAroundObject(playerid, objectid, Float:Range = 10.0)
{
new
Float:o_x, Float:o_y, Float:o_z;
GetObjectPos(objectid, o_x, o_y, o_z);
if(IsPlayerInRangeOfPoint(playerid, Range, o_x, o_y, o_z))
return 1;
return 0;
}
