mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
31
gamemodes/ixhl2rp/plugins/goi_factory/sv_hooks.lua
Normal file
31
gamemodes/ixhl2rp/plugins/goi_factory/sv_hooks.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
--[[
|
||||
| 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:CanPlayerTakeItem(client, item)
|
||||
if (!item.inUse) then return end
|
||||
client:Notify("Nie można zabrać przedmiotu używanego przez maszynę!")
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
function PLUGIN:PostPlayerSay(client, chatType, message)
|
||||
if (chatType != "ic") then return end
|
||||
if (message == "" or message == " ") then return end
|
||||
|
||||
local terminal = client:GetEyeTraceNoCursor().Entity
|
||||
if (!terminal or client:EyePos():DistToSqr(terminal:GetPos()) > 10000) then return end
|
||||
|
||||
--if (!terminal:GetNetVar("authenticated")) then return end
|
||||
if (!terminal:GetNetVar("broadcasting")) then return end
|
||||
|
||||
--ix.chat.Send(nil, "broadcast", message, false, nil, {speakerName = "Broadcast System"})
|
||||
ix.chat.Send(client, "broadcast", message, false, nil, {speakerName = "Rozgłośnia"})
|
||||
end
|
||||
Reference in New Issue
Block a user