Gamemode Help

Hello,
I’ve made a simple Gamemode using Fretta as my Base, And I have a couple of Questions?

  • When I have it on My server, After a certain time, It tries to change it to another gamemode, Any way to disable that feature

-When making classes, Can I just Make a new Lua file and put the Info on it, Then put it in the “Player_Class” folder?, In other words, If I make a new Class can I put it in that folder and Will it work?
Thanks -K.D

  1. fretta_voting 0
    It’s a convar.

  2. To make classes in Fretta, you make a lua file and name it whatever you want in your player_class folder. Inside the folder, you set up a class given the Fretta class structure. Then, in your shared.lua, you do IncludePlayerClasses() and use team.SetClass.

  1. Thanks

  2. I have the IncludePlayerClasses() In my shared,

Team Setup

team.SetUp( TEAM_GREEN, “Team Green”, Color( 70, 230, 70 ) )
team.SetSpawnPoint( TEAM_GREEN, { “info_player_start”, “info_player_terrorist”, “info_player_counterterrorist” }, true )
team.SetClass( TEAM_GREEN, { “Heavy” } )

–How do I Let the people who join team green pick another class I made???

Example, Do I do this???

team.SetUp( TEAM_GREEN, “Team Green”, Color( 70, 230, 70 ) )
team.SetSpawnPoint( TEAM_GREEN, { “info_player_start”, “info_player_terrorist”, “info_player_counterterrorist” }, true )
team.SetClass( TEAM_GREEN, { “Heavy”, "Other Class name } )