• Colored TTT Radio commands?
    0 replies, posted
I'm trying to make it so that the "Traitor" in the traitor call-out radio command is highlighted in red. I have both of these files in my autorun folder: [CODE]function RadioModify( ply, cmd, target ) util.AddNetworkString( "radiomodifyinfo" ) net.Start( "radiomodifytar" ) net.WriteType( target ) net.Broadcast() net.Start( "radiomodifyply" ) net.WriteType( ply ) net.Broadcast() if cmd == "traitor" then BroadcastLua( 'chat.AddText( ply .. ": " .. target .. " is a " .. "Traitor!" )' ) return true end end hook.Add( "TTTPlayerRadioCommand", "RadioModify", RadioModify )[/CODE] [CODE]AddCSLuaFile() net.Receive( "radiomodifytar", function() target = net.ReadType( TYPE_STRING ) end ) net.Receive( "radiomodifyply", function() ply = net.ReadType( TYPE_STRING ) end )[/CODE] No error is given when I try to use the command, but nothing appears. It seems to break the other radio commands as well. What am I doing wrong?
Sorry, you need to Log In to post a reply to this thread.