Merge pull request #19 from meepdarknessmeep/master

fix some spam
This commit is contained in:
William Wallace 2017-07-30 02:07:31 +01:00 committed by GitHub
commit ae439a6b2a
2 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,12 @@ net.Receive("Keypad", function(_, ply)
return
end
if ent.Next_Command_Time and ent.Next_Command_Time > CurTime() then
return
end
ent.Next_Command_Time = CurTime() + 0.05
local command = net.ReadUInt(4)
if command == ent.Command_Enter then

View File

@ -23,6 +23,12 @@ net.Receive("Keypad_Wire", function(_, ply)
return
end
if ent.Next_Command_Time and ent.Next_Command_Time > CurTime() then
return
end
ent.Next_Command_Time = CurTime() + 0.05
local command = net.ReadUInt(4)
if command == ent.Command_Enter then