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???