Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drinkEnergy()
- nothotDuration = 4
- duration = 4
- seconds = 4
- decimals = duration
- addEventHandler('onClientRender',root,renderCircle)
- textTakingOrDrinking = 'Пьём энергетик'
- setTimer( function()
- removeEventHandler('onClientRender',root,renderCircle)
- currentAngle = 0
- nothotDuration = 0
- duration = 0
- end,duration*1100,1)
- --triggerClientEvent('giveHP',localPlayer,localPlayer)
- end
- --------------- Арифметический счётчик ---------------------------------------------------------------------------------------------------
- setTimer( function()
- if duration ~= 0 and duration > 0 then
- decimals = duration-0.1
- duration = duration-0.1
- if decimals <= 0.1 then
- decimals = 0.1
- end
- if decimals <= 0 then
- decimals = 0
- end
- currentAngle = currentAngle+maxAngle/nothotDuration/10
- end
- end,100,0)
- --------------- Арифметический счётчик ---------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement