Files
2026-03-31 10:27:04 +03:00

76 lines
2.8 KiB
Lua
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
local PLUGIN = PLUGIN
PLUGIN.name = "Admin Shop"
PLUGIN.author = "Scripty"
PLUGIN.description = "Adds an admin shop with a unique currency 'Points', inventory, and admin panel."
PLUGIN.Items = {
["remove_warn"] = {
name = "Снятие выговора",
desc = "Снимает один активный выговор с вашего аккаунта. Выговор будет удален из базы данных, и это отобразится в истории.",
price = 150,
category = "Other",
icon = "icon16/error_delete.png",
oneTime = true
},
["tacrp_ex_m4a1"] = {
name = "Оружие: HK416",
desc = "Мощная штурмовая винтовка HK416. Доступ на 10 дней. Оружие выдается через инвентарь.",
price = 50,
category = "Weapons",
duration = 10,
class = "tacrp_ex_m4a1",
color = Color(30, 144, 255)
},
["tacrp_mg4"] = {
name = "Оружие: M249",
desc = "Тяжелый пулемет M249. Доступ на 15 дней. Оружие выдается через инвентарь.",
price = 60,
category = "Weapons",
duration = 15,
class = "tacrp_mg4",
color = Color(255, 140, 0)
},
["tacrp_ex_hecate"] = {
name = "Оружие: MSR",
desc = "Снайперская винтовка MSR. Доступ на 13 дней. Оружие выдается через инвентарь.",
price = 60,
category = "Weapons",
duration = 13,
class = "tacrp_ex_hecate",
color = Color(138, 43, 226)
},
["tacrp_ak_ak12"] = {
name = "Оружие: AK-12",
desc = "Современная штурмовая винтовка АК-12. Доступ на 5 дней. Оружие выдается через инвентарь.",
price = 45,
category = "Weapons",
duration = 5,
class = "tacrp_ak_ak12",
color = Color(255, 215, 0)
},
["tacrp_sd_aac_hb"] = {
name = "Оружие: LVO-AC",
desc = "Превосходная штурмовая винтовка TFA LVO-AC. Доступ на 15 дней. Оружие выдается через инвентарь.",
price = 50,
category = "Weapons",
duration = 15,
class = "tacrp_sd_aac_hb",
color = Color(255, 165, 0)
}
}
-- Point utility functions
local playerMeta = debug.getregistry().Player
function playerMeta:GetAdminPoints()
return self:GetNetVar("adminPoints", 0)
end
function playerMeta:GetAdminInventory()
return self:GetNetVar("adminInventory", {})
end
ix.util.Include("sv_plugin.lua")
ix.util.Include("cl_plugin.lua")