static iPlayers[ 32 ], iNum, tid; get_players( iPlayers, iNum, "a" ); for ( new i = 0; i < iNum; i++ ) { tid = iPlayers[ i ]; // You can also use iPlayers[ i ], but if you use it more than one time, cache the value in a variable. give_item( tid, "weapon_deagle" ); }