Files
wnsrc/gamemodes/ixhl2rp/plugins/bettergas/sh_hooks.lua
lifestorm c6d9b6f580 Upload
2024-08-05 18:40:29 +03:00

27 lines
628 B
Lua

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
local ix = ix
function PLUGIN:CanPlayerEquipItem(client, item)
if (item.isGasmask and client:HasGasmask()) then
return false
end
end
function PLUGIN:CanPlayerUnequipItem(client, item)
if (item.isGasmask and client:GetFilterItem() != nil and client:GetFilterItem() != item) then
return false
end
end
function PLUGIN:SetupAreaProperties()
ix.area.AddType("gas")
end