13.05.2012, 14:57
pawn Код:
if(IsPlayerInRangeOfObject(playerid, range, PunaneLipp))
return SendClientMessage(playerid, -1, "a");
stock IsPlayerInRangeOfObject(playerid, Float:range, objectid) {
new Float:pos[3];
GetObjectPos(objectid, pos[0], pos[1], pos[2]);
return IsPlayerInRangeOfPoint(playerid, range, pos[0], pos[1], pos[2]);
}