Gamemode Problem - Team Issue

Im not sure what the problem is, im not sure if its cause im using a listen server or because im fucking up my script somewhere.

But in my gamemode, when i set my team in the playerinitalspawn hook it always goes to team 1001.

Any reason for this?

What do you mean by team 1001?

By that i mean:


]lua_run print(Entity(1):Team())
1001


[editline]23rd July 2011[/editline]

Func:
[lua]function GM:InitialPlayerSpawn(ply)
ply:SetTeam(1)
ply:JoinMenu()
ply:CreatePlayer()
–local rat = math.floor((team.GetPlayers(1)+team.GetPlayers(4))/(team.GetPlayers(2)+team.GetPlayers(3)+team.GetPlayers(5)))
end[/lua]

Is it any team.SetUp in shared.lua?

[lua] local TEAM_PRISONER = team.SetUp (1, “Prisoner”, Color(130,130,0))
team.SetSpawnPoint( 1, “info_spawn_terrorist” )

local TEAM_GUARD = team.SetUp (2, "Guard", Color(0,0,190))
team.SetSpawnPoint( 2, "info_spawn_counterterrorist" )

local TEAM_WARDEN = team.SetUp (3, "Warden", Color(0,0,190))
team.SetSpawnPoint( 3, "info_spawn_counterterrorist" )




local TEAM_DEADPRISONER = team.SetUp (4, "Dead Prisoner", Color(130,130,100))
team.SetSpawnPoint( 1, "info_spawn_terrorist" )

local TEAM_DEADGUARD = team.SetUp (5, "Dead Guard", Color(100,100,190))
team.SetSpawnPoint( 2, "info_spawn_counterterrorist" )

[/lua]

Yes