Rahkye

[SV] ArmDupe Fix

Nov 27th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. function net.Incoming( len, client )
  2.  
  3.     local i = net.ReadHeader()
  4.     local strName = util.NetworkIDToString( i )
  5.    
  6.     if ( !strName ) then return end
  7.  
  8.     if strName == "ArmDupe" then
  9.         client:Kick("ArmDupe exploit abuse!")
  10.         return
  11.     end
  12.  
  13.     local func = net.Receivers[ strName:lower() ]
  14.     if ( !func ) then return end
  15.  
  16.     len = len - 16
  17.  
  18.     func( len, client )
  19. end
Add Comment
Please, Sign In to add comment