sampev = require('lib.samp.events')
myfont = renderCreateFont('PRICEDOWN', 11, 5)
take_damag = 0
posx = 9
posy = 290
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(0) end
wait(0)
while true do wait(0)
local null_time_armour = os.time() - take_damag
if null_time_armour > 5 or take_damag == nil or take_damag == 0 then
renderFontDrawText(myfont, '{008000}По вам еще не наносиили урон!', posx, posy, 0xFFFFFFFF)
elseif null_time_armour <= 5 then
renderFontDrawText(myfont, 5-null_time_armour..' {FF0000}По вам был нанесен урон', posx, posy, 0xFFFFFFFF)
end
end
end
function sampev.onSendTakeDamage(id, damage, weapon, bodypart)
take_damag = os.time()
end