mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-18 14:13:46 +03:00
Upload
This commit is contained in:
39
gamemodes/ixhl2rp/plugins/ravebutsapphire/sv_plugin.lua
Normal file
39
gamemodes/ixhl2rp/plugins/ravebutsapphire/sv_plugin.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
--[[
|
||||
| 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
|
||||
|
||||
util.AddNetworkString("ixSapphireDrug")
|
||||
|
||||
net.Receive("ixSapphireDrug", function(len, client)
|
||||
PLUGIN:Clear(client)
|
||||
end)
|
||||
|
||||
function PLUGIN:Apply(client)
|
||||
net.Start("ixSapphireDrug")
|
||||
net.WriteBool(true)
|
||||
net.Send(client)
|
||||
client:GetCharacter():SetSpecialBoost("strength", -3, true)
|
||||
client:GetCharacter():SetSpecialBoost("perception", 6, true)
|
||||
client:GetCharacter():SetSpecialBoost("intelligence", 5, true)
|
||||
if (!client:GetNetVar("ixSapphire")) then
|
||||
client:SetNetVar("ixSapphire", true)
|
||||
end
|
||||
end
|
||||
|
||||
function PLUGIN:Clear(client)
|
||||
net.Start("ixSapphireDrug")
|
||||
net.WriteBool(false)
|
||||
net.Send(client)
|
||||
if (client:GetNetVar("ixSapphire")) then
|
||||
client:SetNetVar("ixSapphire", false)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user