Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1.    GetTraitorCount = nil
  2.    GetDetectiveCount = nil
  3.    GetAvoidDetective = nil
  4.  
  5.  
  6. function Initialize()
  7.  
  8.  
  9.    for i = 1, math.huge do
  10.  
  11.       local k, v = debug.getupvalue( SelectRoles, i )
  12.  
  13.       if k == "GetTraitorCount" then
  14.          GetTraitorCount = v
  15.       end
  16.       if k == "GetDetectiveCount" then
  17.          GetDetectiveCount = v
  18.       end
  19.       if k == "GetAvoidDetective" then
  20.          GetAvoidDetective = v
  21.       end
  22.  
  23.       if GetTraitorCount ~= nil and GetDetectiveCount ~= nil and GetAvoidDetective ~= nil or k == nil then
  24.          break;
  25.       end
  26.  
  27.    end
  28. end
  29. hook.Add( "PostGamemodeLoaded", "InitializeExternal", Initialize)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement