new MaxPlayers; // plugin_init( ) MaxPlayers = get_maxplayers( ); // En la función: for( new Index = 1; Index <= MaxPlayers; Index++ ) { if( !is_user_connected( Index ) ) continue; // Tu codigo. }