local event = require 'lib.samp.events'
function event.onSendTakeDamage(id, damage)
hp = getCharHealth(PLAYER_PED)
if ((hp - damage) <= 1) and (getCharArmour(PLAYER_PED) <= 0) then sampSendChat('/hide deagle') sampSendChat('/hide m4') end end
Для начала опишу смысл скрипта: если разность...