alliedmodders/amxmodx — pull request #15 by Arkshine (2014-05-14 22:18:55+00:00)
Title: CS: Fix spectator team index not being set in specific situation

The first time a player chooses spectator team, the team index can't be retrieved by AMXX until next round.
It's specific to CS. For some reason TeamInfo is sent after ScoreInfo and latter is returning 0 as index.
This means some natives relying on team id won't work properly.

The patch fixes two things :
* Manually set spectator team index the first time TeamInfo sends ```SPECTATOR```.
* Make sure a team passed with ```MF_SetPlayerTeamInfo``` from AMXX API, is registered.