+Source|> Posted September 23, 2017 Share Posted September 23, 2017 addEventHandler("onPlayerDamage", root, function( bodypart, attacker ) local weapon = getIDFromName( ) if weapon == 'sniper' if ( bodypart == 9 ) then outputChatBox( "Head Shot", source, 255, 0, 0, true ) setElementHealth( source, 0 ) end end end ) Link to comment
Rockyz Posted September 23, 2017 Share Posted September 23, 2017 (edited) getIDFromName = ? جرب كذا : addEventHandler ( 'onPlayerDamage', root, function ( atk, atkwp, bodypart, attacker ) if ( atkwp == 34 and bodypart == 9 ) outputChatBox ( 'Head Shot', source, 255, 0, 0, true ) setElementHealth ( source, 0 ) end end ) Edited September 23, 2017 by #,+( _xiRoc[K]; > Link to comment
+Source|> Posted September 23, 2017 Author Share Posted September 23, 2017 3 minutes ago, #,+( _xiRoc[K]; > said: getIDFromName = ? طيب انا ابي لو سلاح سنايبر يصير هيد شوت غيره ما يصير هيد شوت Link to comment
Rockyz Posted September 23, 2017 Share Posted September 23, 2017 (edited) 12 minutes ago, #,+( _xiRoc[K]; > said: getIDFromName = ? جرب كذا : addEventHandler ( 'onPlayerDamage', root, function ( atk, atkwp, bodypart, attacker ) if ( atkwp == 34 and bodypart == 9 ) outputChatBox ( 'Head Shot', source, 255, 0, 0, true ) setElementHealth ( source, 0 ) end end ) Edited September 23, 2017 by #,+( _xiRoc[K]; > Link to comment
+Source|> Posted September 23, 2017 Author Share Posted September 23, 2017 20 minutes ago, #,+( _xiRoc[K]; > said: #edit : اذا كنت تبي بس السنايبر هيد شوت جرب كذا : addEventHandler ( 'onPlayerDamage', root, function ( atk, atkwp, bodypart, loss ) if ( atkwp == 34 ) then if ( bodypart == 9 ) outputChatBox ( 'Head Shot', source, 255, 0, 0, true ) setElementHealth ( source, 0 ) end else setElementHealth ( source, getElementHealth ( source ) + loss ) end end ) يعطيك العافيه Link to comment
Rockyz Posted September 23, 2017 Share Posted September 23, 2017 1 minute ago, Source|> said: يعطيك العافيه تعديل بسيط : addEventHandler ( 'onPlayerDamage', root, function ( atk, atkwp, bodypart, loss ) if ( atkwp == 34 ) then if ( bodypart == 9 ) outputChatBox ( 'Head Shot', source, 255, 0, 0, true ) setElementHealth ( source, 0 ) end else if ( bodypart == 9 ) then setElementHealth ( source, getElementHealth ( source ) + loss ) end end end ) 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now