mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
28
gamemodes/ixhl2rp/plugins/ln_hints/cl_plugin.lua
Normal file
28
gamemodes/ixhl2rp/plugins/ln_hints/cl_plugin.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
net.Receive("ixInitializeHints", function()
|
||||
if (ix.option.Get("enableHints", true)) then
|
||||
if (timer.Exists("ixHintsTimer")) then
|
||||
return
|
||||
end
|
||||
|
||||
timer.Create("ixHintsTimer", ix.option.Get("hintInterval", 300), 0, function()
|
||||
if (!LocalPlayer():GetCharacter()) then
|
||||
return
|
||||
end
|
||||
|
||||
if (ix.gui.notices) then
|
||||
ix.gui.notices:AddNotice(ix.hints.stored[math.random(1, #ix.hints.stored)])
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user