mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
21
gamemodes/ixhl2rp/plugins/armbands/cl_hooks.lua
Normal file
21
gamemodes/ixhl2rp/plugins/armbands/cl_hooks.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
function PLUGIN:PopulateCharacterInfo(client, character, tooltip)
|
||||
local armbandData = client:GetNetVar("armbands", {})
|
||||
|
||||
for armband, color in pairs(armbandData) do
|
||||
local panel = tooltip:AddRow("armband")
|
||||
panel:SetBackgroundColor(color)
|
||||
panel:SetText("They are wearing a " .. armband)
|
||||
panel:SizeToContents()
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user