25.12.2013, 06:51
pawn Код:
stock DistanceBetweenObjectAndPlayer(playerid, Float:dist, variable[], min, max){
new Float:pos[3];
for(new slots=min,idx=max;slots!=idx;slots++){
GetObjectPos(variable[slots], pos[0], pos[1], pos[2]);
if(IsPlayerInRangeOfPoint(playerid, dist, pos[0], pos[1], pos[2]))return true;
}return false;}