TTT Traitor Finder (untested)

Posts 1–15 of 49 · Page 1 of 4
TTT Traitor Finder (untested)
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

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
Let me know of any issues and I'll look into it.
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
Quote Originally Posted by D3M0L1T10N View Post
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
I have no clue whether or not you can read, but I stole it from SethHack...It said that directly in the thread...
Quote Originally Posted by TheyCallMeDaz View Post
I have no clue whether or not you can read, but I stole it from SethHack...It said that directly in the thread...
yes i know, im saying that the one from sethhack looks a lot like the one that p0mf made thats all
Alright, I had someone test it and fixed one little error I overlooked, enjoy.

Now I've "contributed" to the community, fags.
Quote Originally Posted by TheyCallMeDaz View Post
Alright, I had someone test it and fixed one little error I overlooked, enjoy.

Now I've "contributed" to the community, fags.
Quick question, since you don't "play this game anymore", why even browse this section
Quote Originally Posted by LordOfGears2 View Post
Quick question, since you don't "play this game anymore", why even browse this section
To help people that want to be what I was, someone that wasn't autistic, then again I set my hopes too high for this section.
Quote Originally Posted by LordOfGears2 View Post
Quick question, since you don't "play this game anymore", why even browse this section
he wants to help
Quote Originally Posted by Azrius View Post
because he thinks bioshock infinite isn't a pile of worthless shit LOL



LOL DO U GET IT I AM THE ONLY SOBER MAN IN THE BAR !!!!
hoof go

good for you
Thanks Dude I Play Terrorist Mode In Garrys Mod Competitively So This Script Is Going To Help Lots

rep+
Quote Originally Posted by Woogenburg View Post
Thanks Dude I Play Terrorist Mode In Garrys Mod Competitively So This Script Is Going To Help Lots

rep+
competitive ttt what if that exsisted
Quote Originally Posted by D3M0L1T10N View Post
competitive ttt what if that exsisted
360 no knives
You should contribute something we don't have already.
Quote Originally Posted by Mundu View Post
You should contribute something we don't have already.
But everyone re-releases the same thing in this section over and over and over again, why would it matter if I do so?

Also, beggars can't be choosers, buddy.
Quote Originally Posted by TheyCallMeDaz View Post
But everyone re-releases the same thing in this section over and over and over again, why would it matter if I do so?

Also, beggars can't be choosers, buddy.
if aimbot == 1

then nospread()

end

ok where do i sign up on the contributer forums



most people arent going to give the public their private shit considering how they A. Don't want it detected B. People will start using it everywhere.
Posts 1–15 of 49 · Page 1 of 4
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?