Sorry, but what?
This won't work and why should it? if you pass 0 as the first argument to set_user_godmode ALL players will be invulnerable if you check for the team first or not.
PHP Code:
new players[32];
new playerCount, i;
get_players(players, playerCount);
for (i=0; i<playerCount; i++)
{
if(get_user_team(players[i])==2)
{
set_user_godmode(players[i], 1);
}
}
That's how it has to be done. An even better way would be to do sth like get_players(players, playerCount, "e=CT") but I don't know if that would work.
http://www.amxmodx.org/doc/index.htm...er_godmode.htm
EDIT:
"We don't really support get_players() with flags anymore. It was a bad idea and if it was our choice, it would have never been added to the original AMX Mod." - BAILOPAN.
Okay the way that's described above is good

.
__________________