for(new i = 0; i < MAX_PLAYERS; i++){new Float:x,Float:y,Float:z;if(IsPlayerConnected(i)) { GetPlayerPos(i,x,y,z); if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) { SendClientMessage(playerid, -1, \"Van itt valaki!\"); } else SendClientMessage(playerid, -1, \"Nincs a közeledben senki.\"); }}
for(new i = 0; i < MAX_PLAYERS; i++){new Float:x,Float:y,Float:z;if(IsPlayerConnected(i)) { GetPlayerPos(playerid,x,y,z); if(IsPlayerInRangeOfPoint(i, 2.0, x, y, z)) { SendClientMessage(playerid, -1, \"Van itt valaki!\"); } else SendClientMessage(playerid, -1, \"Nincs a közeledben senki.\"); }}
new bool:vaneott;for(new i = 0; i < MAX_PLAYERS; i++){new Float:x,Float:y,Float:z;if(IsPlayerConnected(i)) { GetPlayerPos(i,x,y,z); if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) { vaneott=true; break; } }}if(vaneott){ // ha van ott valaki} else { // ha nincs}