aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/system_admin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/shared/system_admin.lua')
-rw-r--r--gamemode/shared/system_admin.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/gamemode/shared/system_admin.lua b/gamemode/shared/system_admin.lua
index 79a54d6..9d748f6 100644
--- a/gamemode/shared/system_admin.lua
+++ b/gamemode/shared/system_admin.lua
@@ -47,6 +47,19 @@ if (SERVER) then
end
end)
+ --Useage: mas_sethp string_playername number_health
+ --Spawn health is 100
+ concommand.Add("mas_sethp", function(pl,com,arg)
+ if (!IsValid(pl) or !pl:IsAdmin()) then return end
+ if(!arg[1]) then return end
+ for k,v in pairs(player.GetAll()) do
+ if(v:Name():lower():find(arg[1]:lower())) then
+ v:SetHealth(arg[2])
+ break;
+ end
+ end
+ end)
+
--Useage: mas_bring string_playername
concommand.Add("mas_bring", function(pl,com,arg)
if (!IsValid(pl) or !pl:IsAdmin()) then return end