I'm using fretta to make my gamemode and I removed 2 of the teams and renamed them but when I click on the button to join the team it says "team unassigned" or something. is there something I forgot? here's the code:
[lua]TEAM_SPETZNAZ = 1
TEAM_RANGERS = 2
/*---------------------------------------------------------
Name: gamemode:CreateTeams()
Desc: Set up all your teams here. Note - HAS to be shared.
---------------------------------------------------------*/
function GM:CreateTeams()
if ( !GAMEMODE.TeamBased ) then return end
team.SetUp( TEAM_SPETZNAZ, "Spetznaz", Color( 255, 0, 0 ), true )
team.SetSpawnPoint( TEAM_SPETZNAZ, "info_player_terrorist" ) // The list of entities can be a table
team.SetUp( TEAM_RANGERS, "U.S. Rangers", Color( 0, 0, 255 ) )
team.SetSpawnPoint( TEAM_RANGERS, "info_player_counterterrorist", true )
team.SetUp( TEAM_SPECTATOR, "Spectators", Color( 200, 200, 200 ), true )
team.SetSpawnPoint( TEAM_SPECTATOR, "info_player_start" )
team.SetClass( TEAM_SPECTATOR, { "Spectator" } )
end[/lua]
still haven't gotten an answer
[editline]05:00PM[/editline]
this is really getting annoying, if I can't join a team, then I can't test any of my shit.
does GAMEMODE.TeamBased = true?
yeah
[editline]05:56PM[/editline]
oh, and when I go into console when I start a game, it says something like "zlib stopped a concommand before player spawned"
could you post the console from when the gamemode starts? Maybe there is an addon conflicting.
[QUOTE=CowThing;22936056]could you post the console from when the gamemode starts? Maybe there is an addon conflicting.[/QUOTE]
ok, I'll post it in a minute.
[editline]06:07PM[/editline]
RunConsoleCommand blocked - sent before player spawned (ZLib_Installed)
it also says "unknown command "seensplash""
[QUOTE=Carmine3777;22917814]... when I click on the button to join the team it says "team unassigned" or something.[/QUOTE]
I think something relating to the "team unassigned" is what he was looking for. Do you get any lua errors printed in the console or Gamemode couldn't load?
Are you including shared.lua in both the init and cl_init?
[QUOTE=BastinkaLive;22937355]I think something relating to the "team unassigned" is what he was looking for. Do you get any lua errors printed in the console or Gamemode couldn't load?
Are you including shared.lua in both the init and cl_init?[/QUOTE]
yes
still having this problem
Dont bump after 3 hours.
Try moving all of your addons out of your addons folder, then run it.
[QUOTE=CowThing]Maybe there is an addon conflicting. [/QUOTE]
Is the code shared?:downs:
[QUOTE=ralle105;22947716]Is the code shared?:downs:[/QUOTE]
[QUOTE=OP][QUOTE=BastinkaLive;22937355]Are you including shared.lua in both the init and cl_init?[/QUOTE]
Yes[/QUOTE]
Oops didn't see that, downs on me:saddowns:
Sorry, you need to Log In to post a reply to this thread.