maxplayers = get_maxplayers() for(new i=1; i <= maxplayers; i++){ if(pev(i, pev_movetype) == MOVETYPE_FLY) {........} }