When you use get_players it stores the player id into the array. So to use it you need to do. players[i]
Code:
cs_get_user_team(players[i])
Same for the other get_players you used. You need to access it by using the array.
Code:
cs_get_user_team(playersDead[iDead])
__________________