Renamon Toast Crunch (12-09-2013),Woogenburg (08-19-2013)
I don't play this game anymore, I didn't test this, this will only work in TTT but a friend wanted a traitor detector so I stole the one from SethHack
Let me know of any issues and I'll look into it.Code:local traitors = {} local _R = debug.getregistry() if(_G.KARMA) then for k, v in ipairs(player.GetAll()) do if(v:Alive() and not table.HasValue(traitors, v)) then for x, y in pairs(_R.Player.GetWeapons(v)) do if(IsValid(y)) then if(y.CanBuy and table.HasValue(y.CanBuy, ROLE_TRAITOR)) then table.insert(traitors, v); chat.AddText(Color(100, 100, 100), "[Gay Traitor Finder] ", Color(255, 10, 10), v:Nick() .. " has traitor weapon " .. y:GetClass() .. "!" ); end end end end end end
Last edited by TheyCallMeDaz; 08-19-2013 at 05:48 PM.
Renamon Toast Crunch (12-09-2013),Woogenburg (08-19-2013)
this looks a lot like p0mfs
Code:local traitors = {}; local tents = {}; local function GetTraitors() for _, e in pairs( ents['GetAll']() ) do if( e['CanBuy'] && table['HasValue']( e['CanBuy'], ROLE_TRAITOR ) && !table['HasValue']( tents, e ) ) then if( e:GetMoveType() == MOVETYPE_NONE ) then table['insert']( tents, e ); local v = e['Owner']; if( v:Alive() && !v:IsDetective() ) then if( !table['HasValue']( traitors, v ) ) then table['insert']( traitors, v ); end end elseif( e:GetMoveType() != MOVETYPE_NONE ) then table['insert']( tents, e ); end end end end
8:53 PM - Xenomorphic 1 hr 7 min cooldown: So is MPGH only exist so people can c+p from ************* and troll the gmod section?
[IMG]https://i739.photobucke*****m/albums/xx38/jorroa5990/flatexch2_zpsec96a7e2.gif[/IMG]
8:53 PM - Xenomorphic 1 hr 7 min cooldown: So is MPGH only exist so people can c+p from ************* and troll the gmod section?
[IMG]https://i739.photobucke*****m/albums/xx38/jorroa5990/flatexch2_zpsec96a7e2.gif[/IMG]
Alright, I had someone test it and fixed one little error I overlooked, enjoy.
Now I've "contributed" to the community, fags.
D3M0L1T10N (08-19-2013),Mundu (08-19-2013)
Thanks Dude I Play Terrorist Mode In Garrys Mod Competitively So This Script Is Going To Help Lots
rep+
You should contribute something we don't have already.
Mundu (08-20-2013),Spifferson (08-20-2013)