Advertisement
wifiboost

Untitled

Sep 7th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. if SERVER then
  2. AddCSLuaFile()
  3. util.AddNetworkString( "AE2F" )
  4. util.AddNetworkString( "AE2FAF" )
  5.  
  6. e2AbuseableFunctions = {"egp3DTracker","runOnChat","holoCreate","fLight","lastSaid","findByClass","findByModel","findPlayerBy","propNotSolid","setPos","streamStart"}
  7.  
  8. function getAllE2Info()
  9. local e2s = {}
  10. for k, v in pairs( ents.FindByClass( "gmod_wire_expression2" ) ) do
  11. if v.context then
  12. e2s[k] = {
  13. ["pos"] = v:GetPos(),
  14. ["name"] = v.name,
  15. ["ops"] = math.floor(v.context.prfbench),
  16. ["owner"] = v:CPPIGetOwner():GetName(), -- THIS CAUSES MASSIVE SCRIPT ERRORS OVER TIME
  17. }
  18. end
  19. end
  20. return e2s;
  21. end
  22.  
  23. net.Receive( "AE2F", function( len, ply )
  24. net.Start("AE2F")
  25. net.WriteTable(getAllE2Info())
  26. net.Send(ply) -- THIS IS LINKED TO IT ASWELL
  27. end )
  28. else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement