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/darkrp/plugins/armbands/cl_hooks.lua
Normal file
21
gamemodes/darkrp/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(armband .. " giyiyor")
|
||||
panel:SizeToContents()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Siyah Kol Bandı"
|
||||
ITEM.description = "Ucuz siyah kumaştan bir parça, görünüşe göre eskiden güzel bir giysi parçasından koparılmış, kenarları hala pürüzlü ve yırtık. Üzerinde taşıyanlara karşı bir tür tepki veya umursamazlık havası yayar."
|
||||
ITEM.color = Color(200, 200, 200)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Mavi işbirlikçi kol bandı"
|
||||
ITEM.description = "Kolun etrafına takılan mavi kumaş parçası."
|
||||
ITEM.color = Color(50, 50, 255)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Açık Mavi CCG rozeti"
|
||||
ITEM.description = "Gömleğe takılan açık mavi rozet. Bu rozet, Combine Sivil Muhafızı üyeleri için tasarlanmıştır."
|
||||
ITEM.color = Color(46, 165, 240)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Yeşil işbirlikçi kol bandı"
|
||||
ITEM.description = "Kolun etrafına takılan yeşil kumaş parçası."
|
||||
ITEM.color = Color(0, 255, 0)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Açık Gri Kol Bandı"
|
||||
ITEM.description = "Kolu saran bir kumaş parçası. Mat açık gri renkte, özel bir şey gibi görünmüyor."
|
||||
ITEM.color = Color(145, 145, 145)
|
||||
@@ -0,0 +1,14 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.name = "Brown ICOBT Armband"
|
||||
ITEM.description = "A brown armband wrapped around the arm, representing the values and membership of the ICOBT."
|
||||
ITEM.color = Color(144, 74, 59)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Turuncu işbirlikçi kol bandı"
|
||||
ITEM.description = "Kolun etrafına takılan turuncu kumaş parçası."
|
||||
ITEM.color = Color(255, 100, 0)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Mor CCA kol bandı"
|
||||
ITEM.description = "Kolun etrafına takılan mor kumaş parçası. Bu, Combine Sivil Yönetimi üyeleri için tasarlanmıştır."
|
||||
ITEM.color = Color(150, 0, 255)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Kırmızı işbirlikçi kol bandı"
|
||||
ITEM.description = "Kolun etrafına takılan kırmızı kumaş parçası."
|
||||
ITEM.color = Color(255, 0, 0)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Beyaz işbirlikçi kol bandı"
|
||||
ITEM.description = "Kolun etrafına takılan beyaz kumaş parçası."
|
||||
ITEM.color = Color(255, 255, 255)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Yıldızlı Kurdeleli Beyaz İşbirlikçi Kol Bandı"
|
||||
ITEM.description = "Kolun etrafına takılan beyaz kumaş parçası. Üzerine yapıştırılmış şık bir yıldız madalyası ve kurdelesi bulunuyor gibi görünüyor."
|
||||
ITEM.color = Color(255, 255, 255)
|
||||
@@ -0,0 +1,13 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
ITEM.name = "Sarı işbirlikçi kol bandı"
|
||||
ITEM.description = "Kolun etrafına takılan sarı kumaş parçası."
|
||||
ITEM.color = Color(255, 255, 0)
|
||||
38
gamemodes/darkrp/plugins/armbands/items/base/sh_armbands.lua
Normal file
38
gamemodes/darkrp/plugins/armbands/items/base/sh_armbands.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
ITEM.base = "base_genericequipable"
|
||||
ITEM.name = "Armband"
|
||||
ITEM.description = "A piece of fabric material worn around the arm."
|
||||
ITEM.model = "models/willardnetworks/armband.mdl"
|
||||
ITEM.category = "misc"
|
||||
ITEM.color = Color(255, 255, 255)
|
||||
|
||||
if (CLIENT) then
|
||||
function ITEM:PopulateTooltip(tooltip)
|
||||
local name = tooltip:GetRow("name")
|
||||
name:SetBackgroundColor(self.color)
|
||||
end
|
||||
end
|
||||
|
||||
function ITEM:OnEquipped(client)
|
||||
local armbands = client:GetNetVar("armbands", {})
|
||||
armbands[self.name[1]:lower() .. self.name:Right(#self.name - 1)] = self.color
|
||||
|
||||
client:SetNetVar("armbands", armbands)
|
||||
end
|
||||
|
||||
function ITEM:OnUnequipped(client)
|
||||
local armbands = client:GetNetVar("armbands", {})
|
||||
armbands[self.name[1]:lower() .. self.name:Right(#self.name - 1)] = nil
|
||||
|
||||
client:SetNetVar("armbands", armbands)
|
||||
end
|
||||
17
gamemodes/darkrp/plugins/armbands/sh_plugin.lua
Normal file
17
gamemodes/darkrp/plugins/armbands/sh_plugin.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
PLUGIN.name = "Armbands"
|
||||
PLUGIN.author = "Aspect™"
|
||||
PLUGIN.description = "Adds wearable armband items."
|
||||
|
||||
ix.util.Include("cl_hooks.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
24
gamemodes/darkrp/plugins/armbands/sv_hooks.lua
Normal file
24
gamemodes/darkrp/plugins/armbands/sv_hooks.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
--[[
|
||||
| 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:CharacterLoaded(character)
|
||||
local client = character:GetPlayer()
|
||||
local items = character:GetInventory():GetItems()
|
||||
local armbands = {}
|
||||
|
||||
for _, item in pairs(items) do
|
||||
if (item.base != "base_armbands" or !item:GetData("equip")) then continue end
|
||||
|
||||
armbands[item.name[1]:lower() .. item.name:Right(#item.name - 1)] = item.color
|
||||
end
|
||||
|
||||
client:SetNetVar("armbands", armbands)
|
||||
end
|
||||
Reference in New Issue
Block a user