- Initiateur de la discussion
zytrone
Geek
- Messages
- 18
- Score réaction
- 0
- Points
- 60
bonjour , voila je m’explique j'ai installé cet addon : Steam Workshop :: SCP-173 SWEP sur mon serveur mais le problème c'est que je voudrais enlever le clignement des yeux pour certains jobs comme les scp , mais je n'arrive pas à savoir la ligne qu'il faut ajouter je vous demande donc de l'aide .
voici le script du clignement :
local
={="blinkTime"}if
SERVER
then
util.AddNetworkString"blinking_send"local
a=FindMetaTable"Player"
CreateConVar("blinking_time",15,FCVAR_ARCHIVE,"Time between blinks")
CreateConVar("blinking_duration",0.1,FCVAR_ARCHIVE,"Duration time for blinking")
function
a:IsBlinking()if!self[.]then
return!1
end
if
self:GetActiveWeapon()&&self:GetActiveWeapon().ISSCP
then
return!1
end
if(self[.]-(GetConVar"blinking_duration"):GetFloat())<os.time()then
return!1
end
return!!1
end
local
function
a(a)a[.]=os.time()+(GetConVar"blinking_time"):GetInt()net.Start"blinking_send"net.WriteFloat((GetConVar"blinking_duration"):GetFloat())net.Send(a)end
hook.Add("PlayerInitialSpawn","Blinking initial spawn",function(b)if!timer.Exists(b:SteamID64().." blinktime")then
timer.Create(b:SteamID64().." blinktime",(GetConVar"blinking_time"):GetInt(),0,function()a(b)end)end
end)hook.Add("PlayerDisconnected","Blinking remove timer",function(a)if!timer.Exists(a:SteamID64().." blinktime")then
timer.Remove(a:SteamID64().." blinktime")end
end)end
if
CLIENT
then
local
c
local
function
d(d)if
LocalPlayer():GetActiveWeapon().ISSCP
then
return
end
if
c
then
c:Remove()end
c=vgui.Create"DPanel"c:SetPos(0,0)c:SetSize(ScrW(),ScrH())c.Paint=function(d)draw.RoundedBox(0,0,0,d:GetWide(),d:GetTall(),Color(0,0,0))end
timer.Simple(d,function()if
c
then
c:Remove()end
end)end
net.Receive("blinking_send",function()local
c=net.ReadFloat()d(c)end)local
c=!1
end
voici le script du clignement :
local
={="blinkTime"}if
SERVER
then
util.AddNetworkString"blinking_send"local
a=FindMetaTable"Player"
CreateConVar("blinking_time",15,FCVAR_ARCHIVE,"Time between blinks")
CreateConVar("blinking_duration",0.1,FCVAR_ARCHIVE,"Duration time for blinking")
function
a:IsBlinking()if!self[.]then
return!1
end
if
self:GetActiveWeapon()&&self:GetActiveWeapon().ISSCP
then
return!1
end
if(self[.]-(GetConVar"blinking_duration"):GetFloat())<os.time()then
return!1
end
return!!1
end
local
function
a(a)a[.]=os.time()+(GetConVar"blinking_time"):GetInt()net.Start"blinking_send"net.WriteFloat((GetConVar"blinking_duration"):GetFloat())net.Send(a)end
hook.Add("PlayerInitialSpawn","Blinking initial spawn",function(b)if!timer.Exists(b:SteamID64().." blinktime")then
timer.Create(b:SteamID64().." blinktime",(GetConVar"blinking_time"):GetInt(),0,function()a(b)end)end
end)hook.Add("PlayerDisconnected","Blinking remove timer",function(a)if!timer.Exists(a:SteamID64().." blinktime")then
timer.Remove(a:SteamID64().." blinktime")end
end)end
if
CLIENT
then
local
c
local
function
d(d)if
LocalPlayer():GetActiveWeapon().ISSCP
then
return
end
if
c
then
c:Remove()end
c=vgui.Create"DPanel"c:SetPos(0,0)c:SetSize(ScrW(),ScrH())c.Paint=function(d)draw.RoundedBox(0,0,0,d:GetWide(),d:GetTall(),Color(0,0,0))end
timer.Simple(d,function()if
c
then
c:Remove()end
end)end
net.Receive("blinking_send",function()local
c=net.ReadFloat()d(c)end)local
c=!1
end