Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: postrzał
1. Postrzał
Ot?? posiadam taki kod on oczywi?cie nie dzia?a ale ja nie wiem gdzie jest b??d
function postrzal ( attacker, bodypart, thePlayer )
    if ( 
bodypart == 3 ) then
    local hp 
= getElementHealth(localPlayer)
    if 
hp <= 6 then
        toggleAllControls 
( thePlayer, false )
        
setTimer ( toggleAllControls, freezeTime, 70, thePlayer, true ) 
        
setPedAnimation ( thePlayer, "CRACK", "crckidle1")
    
end
end
end
addEventHandler
("onClientPlayerDamage", postrzal, attacker)


Ot?? to ma dzia?a? na zasadzie, ?e je?li kto? ma 6 HP albo mniej to aby mu blokowa?o kontrol? oraz dawa?o animk?