slight prob with this, most mods no longer use numbers for teams, in fact about the only mod I know of that is main stream is TFC.
Now you would have to do this mod based of course but use this code:
Code:
new team[32]
get_user_team(id,team,31)
//TFC support =)
new theteam=get_user_team(id)
if(equali(team,"spectator") || equali(team,"spectatorteam") || (theteam==6)){
//your stuff here
}
I did equali so that you can cut some code out and possibly support more mods since some mods may use the same team name =)
Here is a list of some of the teams for some mods:
- //ns
undefinedteam
spectatorteam
alien1team
marine1team
//cs
SPECTATOR
UNASSIGNED
CT
TERRORIST
//dod
spectator
axis
allies
Note: I could be totally off on this since I'm just now moving into amxmodx. This is all based off of amx.