function taser(atakujacy, bron, cialo, starciles)
if atakujacy and (bron == 23) then
setElementFrozen(source,true)
setPedAnimation(source, "CRACK", "crckdeth2", -1, true, false)
one=setTimer(setElementFrozen,30000,1,source,false)
two=setTimer(setPedAnimation,30000,1,source,false)
if isTimer(one) and isTimer(two) then
killTimer(one)
killTimer(two)
one=setTimer(setElementFrozen,30000,1,source,false)
two=setTimer(setPedAnimation,30000,1,source,false)
end
end
setElementHealth(source, getElementHealth(source)+starciles)
end
addEventHandler ( "onPlayerDamage", getRootElement (), taser)