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: [url]http://dl.dropbox.com/u/14268154/gamemode.rar[/url]
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!
:)
For problem 1 do you get any clientside lua errors?
To stop spawning use [B][B][URL="http://wiki.garrysmod.com/?title=Gamemode.PlayerSpawnObject"]Gamemode.PlayerSpawnObject [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B] [/B]and to block noclip use [B][URL="http://wiki.garrysmod.com/?title=Gamemode.PlayerNoClip"]Gamemode.PlayerNoClip [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B] to prevent the use of some tools use [B][URL="http://wiki.garrysmod.com/?title=Gamemode.CanTool"]Gamemode.CanTool [/URL][URL="http://wiki.garrysmod.com/?title=Gamemode.CanTool"][IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL]
[/B]
A base for a money system you could use [URL="http://www.garrysmod.org/downloads/?a=view&id=98988"]Chief's Money System [/URL]if you need further help with making a money system just pm me.
Whenever I try using team_menu now, it says:
[code] ] team_menu
[gamemodes\bigcity\gamemode\cl_init.lua:5] attempt to index global 'vgui' (a nil value)
[/code]
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
Sorry, you need to Log In to post a reply to this thread.