Mezo.
Mod-Team
Wiek: 24 Na forum: 3211 dni Posty: 548
Nick w MP: Mezo
Piwa : 6070
Masz cos takiego jak skrypt o nazwie podmianka-paralizator
Wchodzisz w s.lua i pr?buj na 2 wersje
Pierwsza wersja
function taser ( atakujacy , bron , cialo , starciles )
if atakujacy and ( bron == 23 ) then
setElementFrozen ( source , true )
setPedAnimation ( source , "CRACK" , "crckdeth2" , - 1 , true , false )
setTimer ( setElementFrozen , 30000 , 1 , source , false )
setTimer ( setPedAnimation , 30000 , 1 , source , false )
end
end
addEventHandler ( "onPlayerDamage" , getRootElement (), taser )
A je?eli ta powyzej nie zadziala, proboj tej ponziej
function taser ( atakujacy , bron , cialo , starciles )
if atakujacy and ( bron == 23 ) then
setElementFrozen ( source , true )
setPedAnimation ( source , "CRACK" , "crckdeth2" , - 1 , true , false )
setTimer ( setElementFrozen , 30000 , 1 , source , false )
setTimer ( setPedAnimation , 30000 , 1 , source , false )
-- setElementHealth ( source , getElementHealth ( source )+ starciles )
else
end
end
addEventHandler ( "onPlayerDamage" , getRootElement (), taser )