Aymane Posted January 17, 2019 Share Posted January 17, 2019 Quote local playerHealth = getElementHealth(thePlayer) if (playerHealth < 20) then setPedAnimation(thePlayer,"ped","fall_back") end اين هوا خطا يا شباب انا مبتدء في برمجة Link to comment
#Major . Posted January 17, 2019 Share Posted January 17, 2019 58 minutes ago, Aymane said: اين هوا خطا يا شباب انا مبتدء في برمجة thePlayer مو معرف في الكود Link to comment
Aymane Posted January 17, 2019 Author Share Posted January 17, 2019 Just now, [AcM] - Major . said: thePlayer مو معرف في الكود كيف اعرفه Link to comment
#Major . Posted January 17, 2019 Share Posted January 17, 2019 Just now, Aymane said: كيف اعرفه اعطيني الكود كامل Link to comment
JustP Posted May 4, 2019 Share Posted May 4, 2019 (edited) On 17/01/2019 at 20:19, Aymane said: اين هوا خطا يا شباب انا مبتدء في برمجة لو انك تعرفه او انك تستبدله كذا function health( ) thePlayer = source if getElementHealth( thePlayer ) <= 20 then setPedAnimation(thePlayer,"ped","fall_back") end end --- or function health( ) if getElementHealth( source ) <= 20 then setPedAnimation(source,"ped","fall_back") end end Edited May 4, 2019 by JustP Link to comment
+Source|> Posted May 4, 2019 Share Posted May 4, 2019 On 17/01/2019 at 21:27, Aymane said: كيف اعرفه addEventHandler( "onPlayerDamage", root, function ( ) if getElementHealth( source ) <= 20 then setPedAnimation(thePlayer,"ped","fall_back") end end ) Link to comment
Abdul KariM Posted May 4, 2019 Share Posted May 4, 2019 2 hours ago, +Source|> said: addEventHandler( "onPlayerDamage", root, function ( ) if getElementHealth( source ) <= 20 then setPedAnimation(thePlayer,"ped","fall_back") end end ) راجع كودك 2 Link to comment
Jw8. Posted May 4, 2019 Share Posted May 4, 2019 function (player) if getElementHealth( player ) <= 20 then setPedAnimation(player,"ped","fall_back") end end .. Link to comment
#BrosS Posted May 4, 2019 Share Posted May 4, 2019 35 minutes ago, DmAr511 said: .. خلاص الموضوع قديم ولسه تعطو اكواد خاطئة 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