new g_iMaxPlayers; // global variable for your player loop public plugin_init( ) { g_iMaxPlayers = get_maxplayers( ); // what it does } for( new i = 1; i <= g_iMaxPlayers; i++ ) // how to loop through the players