27.03.2015, 00:42
Its my own function, just returns true or false
Код:
stock IsPlayerNearObject(playerid, objectid, Float:range = 2.0) { new Float:X, Float:Y, Float:Z; GetDynamicObjectPos(objectid, X, Y, Z); if(IsPlayerInRangeOfPoint(playerid, range, X, Y, Z)) return 1; else return 0; }