Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ITEM:OnUse( )
- local ply = self:GetOwner( )
- hook.Add("TTTBeginRound", ply:UniqueID() .. "_traitor", function()
- if ply:GetRoleString() != "traitor" then
- ply:SetRole(ROLE_TRAITOR)
- ply:AddCredits(GetConVarNumber("ttt_credits_starting"))
- ply:GetOwner( ):SetVelocity( self:GetOwner( ):GetUp( ) * 15 )
- end
- hook.Remove("TTTBeginRound", ply:UniqueID() .. "_traitor")
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement