I need help fixing my gamemode.

Hi there folks! I guess I need your help again.
I’ve been having some trouble with my gamemode, and I would appreciate it if you all could lend me a hand here.

Problem N# 1: Team selection gui, where are you?
I will upload my gamemode lua files soon, but basically, here’s the deal: I simply dont get my team-selection menu at spawn. ( Unknown command: Team_menu ).
Lua Files: http://dl.dropbox.com/u/14268154/gamemode.rar

Problem N# 2: Sandbox features.
You see, I am using DeriveGamemode( “sandbox” )
Ergo, people can noclip and spawn stuff as they please. Is there any way I can make it so that only I or selected people ( SteamID ) can spawn stuff and use noclip without using a major admin addon?

Problem N# 3: The Scoreboard.
My teams are set to have specific colors. However, when I open tab, all I see is my name in green. Is there any way to display which team I am on, and change my color to be the team’s default one?

Problem N# 4: The Tools.
I also feel like blocking some tools, like Wire Turret. But I dont want to remove the whole wire addon. Ideas?

Bonus Problem: Money.
I’ve been looking through countless RP gamemodes, but I didnt quite get how to implant a money system in my gamemode. Could anyone do a step-by-step guide on how to do that? I would be very grateful. And I would like to save the information on a .txt file.

Thanks!
:slight_smile:

For problem 1 do you get any clientside lua errors?
To stop spawning use ****[Gamemode.PlayerSpawnObject

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Gamemode.PlayerSpawnObject)** **and to block noclip use **[Gamemode.PlayerNoClip

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Gamemode.PlayerNoClip)** to prevent the use of some tools use **Gamemode.CanToolhttp://wiki.garrysmod.com/favicon.ico
**
A base for a money system you could use Chief’s Money Systemif you need further help with making a money system just pm me.

Whenever I try using team_menu now, it says:


 ] team_menu
[gamemodes\bigcity\gamemode\cl_init.lua:5] attempt to index global 'vgui' (a nil value)


I ran the clientside code in gmod, I got no errors, but you should localize all of the derma items, eg:
[lua]local frame = vgui.Create( “DFrame” )[/lua]

[editline]5th July 2011[/editline]

Instead of running a console command from the server, you could just put ‘set_team()’ after that function to run it