diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2015-12-31 19:06:56 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2015-12-31 19:06:56 -0500 |
| commit | 9232b290cd5f9f48c8d57b2e419497ced327be6d (patch) | |
| tree | c528f7a44ff7f5d741f25d6d41ac47447a50de49 /gamemode/shared/system_admin.lua | |
| parent | 6fe49304a692bf768f6139c6e26cc9b90d079d4a (diff) | |
| download | wintersurvival2-9232b290cd5f9f48c8d57b2e419497ced327be6d.tar.gz wintersurvival2-9232b290cd5f9f48c8d57b2e419497ced327be6d.tar.bz2 wintersurvival2-9232b290cd5f9f48c8d57b2e419497ced327be6d.zip | |
Added mas_sethp command
Diffstat (limited to 'gamemode/shared/system_admin.lua')
| -rw-r--r-- | gamemode/shared/system_admin.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gamemode/shared/system_admin.lua b/gamemode/shared/system_admin.lua index 09b223b..dfd0d66 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
|
