• Ply:SetTeam
    6 replies, posted
Solved.
You should add a bool at the end as seen in the wiki. [b][url=http://wiki.garrysmod.com/?title=Team.SetUp]Team.SetUp [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[LIST=1] [*][lua]team.SetUp( 1, "Civilian", Color( 125, 255, 0, 255 ), 1 ) [/lua] [/LIST] 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]
[QUOTE=Mastermind26;24939313][LIST=1] [*][lua]team.SetUp( 1, "Civilian", Color( 125, 255, 0, 255 ), 1 ) [/lua] [/LIST] Like that?[/QUOTE] team.SetUp([img]http://wiki.garrysmod.com/images/2/23/Integer.png[/img] TeamIndex, [img]http://wiki.garrysmod.com/images/a/a0/String.png[/img] TeamName,[img]http://wiki.garrysmod.com/images/b/bf/Color.png[/img] TeamColor,[img]http://wiki.garrysmod.com/images/5/54/Boolean.png[/img] Joinable ) No it says [img]http://wiki.garrysmod.com/images/5/54/Boolean.png[/img] not [img]http://wiki.garrysmod.com/images/2/23/Integer.png[/img]. [lua]team.SetUp( 1, "Civilian", Color( 125, 255, 0, 255 ), true ) [/lua] [QUOTE=Saevus;24939334]yeah[/QUOTE] Next time read his post more carefully, idiot.
Thank you Wizard of Ass!
Sorry, you need to Log In to post a reply to this thread.