Ply:SetTeam

Solved.

You should add a bool at the end as seen in the wiki.

**[Team.SetUp

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Team.SetUp)**

[ol]
[li][lua]team.SetUp( 1, “Civilian”, Color( 125, 255, 0, 255 ), 1 ) [/lua][/li][/ol]
Like that?

yeah

`Thanks

[editline]06:18PM[/editline]

It didn’t work, I am still in the Joining/Connecting team

Here is the code again:

[lua]
function GM:PlayerInitialSpawn( ply )
if ply:IsAdmin() then
ply:SetTeam(12)
else
ply:SetTeam(1)
end
end
[/lua]

team.SetUp(

TeamIndex,

TeamName,

TeamColor,

Joinable )

No it says

not

.

[lua]team.SetUp( 1, “Civilian”, Color( 125, 255, 0, 255 ), true ) [/lua]

Next time read his post more carefully, idiot.

Thank you Wizard of Ass!