What's with the extra ")" at the end of your code?
Because I hooked that function. Also I missed an end, edited the original post.
Sorry, what file does this go in, at the minute in looking at traitor_state.lua and cant see where I would slot this in. If im in the right place that is.
Don't put it in ttt gamemode files, put it in lua/autorun/server
Also make sure you confgure it, don't just throw it in there because right now it won't do anything. You have to give them the credit first.