for(new i; i<MAX_PLAYERS;i++){ if(i != playerid && IsPlayerNearPlayer(playerid, i, 2.0)) { PushFunctionHere; break; }}