Buy in traitor won't purchase

when i go to purchase it, it doesn’t take any points away, and it doesn’t work at all… here’s my code

[lua]TRAITOR = ttt_force_traitor

ITEM.Name = ‘Traitor’
ITEM.Price = 5000
ITEM.Material = ‘VGUI/ttt/sprite_traitor.vmt’
ITEM.OneUse = true

function ITEM:OnEquip(ply, modifications)
hook.Add(“TTTBeginRound”, ply:UniqueID() … “_traitor”, function()
if not ply:GetRoleString() != “traitor” then
ply:SetRole(ROLE_TRAITOR)
ply:AddCredits(GetConVarNumber(“ttt_credits_starting”))
end

if SERVER then
ply:PS_TakeItem(self.ID)
end

hook.Remove(“TTTBeginRound”, ply:UniqueID() … “_traitor”)
end)
end

function ITEM:OnHolster(ply)
hook.Remove(“TTTBeginRound”, ply:UniqueID() … “_traitor”)
end[/lua]

[editline]12th August 2013[/editline]

someone?!?!?!

[editline]12th August 2013[/editline]

anyone that can help me???

I literally can’t follow what you’re trying to do… why are you doing “TRAITOR = ttt_force_traitor” ?

edit: I understand now, but even still…

I removed it, but it doesn’t work still :frowning: