Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ITEM:OnEquip(ply, modifications)
- hook.Add("TTTBeginRound", ply:UniqueID() .. "_detective", function()
- if ply:GetRoleString() ~= "detective" then
- ply:SetRole(ROLE_DETECTIVE)
- ply:AddCredits(GetConVarNumber("ttt_credits_starting"))
- end
- if SERVER then
- ply:PS_TakeItem(self.ID)
- end
- hook.Remove("TTTBeginRound", ply:UniqueID() .. "_detective")
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement