Originally Posted by
nadimking
Tried doing it,put it in notepad,saved it as a lua file,went in a ttt server,in console i typed lua_openscript_cl (the name).lua and then it just said
Running script ttt3.lua... and nothing happend
---------- Post added at 02:57 PM ---------- Previous post was at 02:57 PM ----------
I know how to bypass and all,but where does it say who the traitors are,its not working for me
this script doesnt work out of the box, for some reason i feel like helping leechers right now so heres the fixed version that doesnt require editing, no idea if it works cause i've never tested this script or my edit
Code:
local traitors = {}
local _R = debug.getregistry()
function ttt()
if string.find( string.lower( GAMEMODE.Name ), "terror" ) then return true end
return false
end
function cocks()
if ttt() 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),
"[daz has a small penis] ", Color(255, 10, 10), v:Nick() .. " has traitor weapon " .. y:GetClass() .. "!"
);
end
end
end
end
end
end
end
hook.Add( "Think", "trait", cocks )