01.07.2011, 03:38
This will check if the player is near to the object (within radius):
PHP код:
stock IsPlayerCloseToObject(playerid, objectid, Float:radius)
{
new Float:x, Float:y, Float:z;
GetObjectPos(objectid, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z)) { return 1; }
return 0;
}