mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
58 lines
1.2 KiB
Lua
58 lines
1.2 KiB
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 PLUGIN = PLUGIN
|
||
|
||
ITEM.name = "Writing Base"
|
||
ITEM.model = "models/error.mdl"
|
||
ITEM.width = 1
|
||
ITEM.height = 1
|
||
ITEM.identifier = "base"
|
||
ITEM.description = ""
|
||
ITEM.category = "Writing"
|
||
ITEM.bAllowMultiCharacterInteraction = true
|
||
|
||
function ITEM:GetName()
|
||
local title = self:GetData("title")
|
||
if title and title != "" then return title end
|
||
|
||
return self.name
|
||
end
|
||
|
||
function ITEM:GetDescription()
|
||
return "Okunabilir veya üzerine yazılabilir bir "..self.identifier
|
||
end
|
||
|
||
function ITEM:SetBodygroups(bodygroups)
|
||
self:SetData("bodygroups", bodygroups)
|
||
end
|
||
|
||
function ITEM:GetModelBodygroups()
|
||
return self:GetData("bodygroups") or ""
|
||
end
|
||
|
||
ITEM.functions.Write = {
|
||
name = "Oku/Yaz",
|
||
tip = "Oku ya da yaz.",
|
||
icon = "icon16/text_align_center.png",
|
||
OnRun = function(item)
|
||
local client = item.player
|
||
if !IsValid(client) then return false end
|
||
|
||
if (SERVER) then
|
||
PLUGIN:OpenWriting(client, item)
|
||
end
|
||
|
||
return false
|
||
end
|
||
}
|