mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
--[[
|
||||
| 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 = "[Audio Player] Learn to Read"
|
||||
ITEM.uniqueID = "audiobook_reading"
|
||||
ITEM.model = "models/props_lab/reciever01d.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.description = "Listening to this rustic device will improve your reading capability."
|
||||
ITEM.category = "Audiobooks"
|
||||
|
||||
ITEM.functions.Listen = {
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
local character = client:GetCharacter()
|
||||
|
||||
character:SetCanread(true)
|
||||
|
||||
client:NotifyLocalized("I feel much better at reading now.")
|
||||
end
|
||||
}
|
||||
89
gamemodes/helix/plugins/charcreation/items/sh_razor.lua
Normal file
89
gamemodes/helix/plugins/charcreation/items/sh_razor.lua
Normal file
@@ -0,0 +1,89 @@
|
||||
--[[
|
||||
| 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 = "Kuaför Araçları"
|
||||
ITEM.uniqueID = "beard_razor"
|
||||
ITEM.model = "models/props_junk/cardboard_box004a.mdl"
|
||||
ITEM.width = 1
|
||||
ITEM.height = 1
|
||||
ITEM.description = "Yaratıcı ruhlar için tasarlanmış bir alet."
|
||||
ITEM.category = "Tools"
|
||||
|
||||
ITEM.functions.Style = {
|
||||
icon = "icon16/paintbrush.png",
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
if !client or client and !IsValid(client) then return end
|
||||
|
||||
local model = client:GetModel()
|
||||
if model:find("willardnetworks/citizens/") or model:find("wn7new") then
|
||||
if !client.CantPlace then
|
||||
client.CantPlace = true
|
||||
netstream.Start(client, "OpenBeardStyling")
|
||||
|
||||
timer.Simple(3, function()
|
||||
if client then
|
||||
client.CantPlace = false
|
||||
end
|
||||
end)
|
||||
else
|
||||
client:NotifyLocalized("Bunu yapmadan önce biraz beklemelisin!")
|
||||
return false
|
||||
end
|
||||
else
|
||||
client:NotifyLocalized("Şekillendirebileceğin bir saçın/sakalın yok!")
|
||||
return false
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
}
|
||||
|
||||
ITEM.functions.Style2 = {
|
||||
icon = "icon16/paintbrush.png",
|
||||
name = "Style Other",
|
||||
OnRun = function(itemTable)
|
||||
local client = itemTable.player
|
||||
if !client or client and !IsValid(client) then return end
|
||||
|
||||
local target = client:GetEyeTraceNoCursor().Entity
|
||||
if !target or target and !IsValid(target) then
|
||||
client:Notify("Geçersiz hedef!")
|
||||
return false
|
||||
end
|
||||
|
||||
if target:GetModel():find("willardnetworks/citizens/") then
|
||||
if !client.CantPlace then
|
||||
client.CantPlace = true
|
||||
|
||||
if target:IsBot() then
|
||||
netstream.Start(client, "OpenBeardStyling", target)
|
||||
else
|
||||
netstream.Start(target, "GetStylingConfirmation", client)
|
||||
end
|
||||
|
||||
timer.Simple(3, function()
|
||||
if client then
|
||||
client.CantPlace = false
|
||||
end
|
||||
end)
|
||||
else
|
||||
client:NotifyLocalized("Bunu yapmak için biraz beklemelisin!")
|
||||
return false
|
||||
end
|
||||
else
|
||||
client:NotifyLocalized("Hedefinin şekillendirilebilecek bir saçı/sakalı yok!")
|
||||
return false
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user