summaryrefslogtreecommitdiff
path: root/gamemode
diff options
context:
space:
mode:
authorScott <scotth0828@gmail.com>2016-05-15 18:09:53 -0400
committerScott <scotth0828@gmail.com>2016-05-15 18:09:53 -0400
commit762d37c3b52a0490538974419c87bc8a6ef4c267 (patch)
tree715ab829989af038ce95902961eef27a8dc0bfa9 /gamemode
parent6721840fb5dedc11d4a26a1e610de371b64b23c0 (diff)
downloadgmstranded-762d37c3b52a0490538974419c87bc8a6ef4c267.tar.gz
gmstranded-762d37c3b52a0490538974419c87bc8a6ef4c267.tar.bz2
gmstranded-762d37c3b52a0490538974419c87bc8a6ef4c267.zip
Some changes
Diffstat (limited to 'gamemode')
-rw-r--r--gamemode/client/cl_inventory.lua10
-rw-r--r--gamemode/configure_me.lua8
2 files changed, 10 insertions, 8 deletions
diff --git a/gamemode/client/cl_inventory.lua b/gamemode/client/cl_inventory.lua
index 92c3229..2534b91 100644
--- a/gamemode/client/cl_inventory.lua
+++ b/gamemode/client/cl_inventory.lua
@@ -22,9 +22,10 @@ local buttons = {
txt = "Combinations",
admin = false,
},
+ -- Set to false once complete
{
txt = "Equipment",
- admin = false,
+ admin = true,
},
{
txt = "Props",
@@ -180,7 +181,8 @@ function PANEL:Init()
surface.SetTextPos( (titlePanel:GetWide()/2) - ( surface.GetTextSize(gmod.GetGamemode().Name)/2 ), (titlePanel:GetTall()/2) - (select( 2, surface.GetTextSize( gmod.GetGamemode().Name ) )/2) )
surface.DrawText( gmod.GetGamemode().Name )
end
-
+
+ kk = 1
for k,v in pairs(buttons) do
if (v['admin'] and !LocalPlayer():IsAdmin()) then continue end
@@ -188,7 +190,7 @@ function PANEL:Init()
local btn = vgui.Create("DButton", buttonPanel)
btn:SetText("")
btn:SetSize( buttonPanel:GetWide(), 35 )
- btn:SetPos( 0, (k-1)*btn:GetTall() + ((k-1)*1) + (titlePanelWidth+10) )
+ btn:SetPos( 0, (kk-1)*btn:GetTall() + ((kk-1)*1) + (titlePanelWidth+10) )
btn.Paint = function()
draw.RoundedBox( 0, 0, 0, btn:GetWide(), btn:GetTall(), Color( 0, 0, 102 ) )
surface.SetFont( "ButtonText" )
@@ -204,7 +206,7 @@ function PANEL:Init()
curDisplay = v['txt']
end
-
+ kk = kk+1
end
diff --git a/gamemode/configure_me.lua b/gamemode/configure_me.lua
index cdd5346..def6e00 100644
--- a/gamemode/configure_me.lua
+++ b/gamemode/configure_me.lua
@@ -25,13 +25,13 @@ GMS.graveTime = {
{
rank = "user",
- time = "120",
+ time = "300",
},
{
- rank = "owner",
- time = "240",
+ rank = "superadmin",
+ time = "420",
},
@@ -54,7 +54,7 @@ GMS.Developers = {
//The tools that players are allowed to use
GMS.AllowedStools = {
- "percision",
+ "precision",
"axis",
"ballsocket",
"elastic",