Jump to content

مساعدة


Aymane

Recommended Posts

Posted
Quote

local playerHealth = getElementHealth(thePlayer)
if (playerHealth < 20) then
setPedAnimation(thePlayer,"ped","fall_back")
end

 

اين هوا خطا يا شباب انا مبتدء في برمجة

  • 3 months later...
Posted (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 by JustP
Posted
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
)
  

 

Posted
2 hours ago, +Source|> said:

addEventHandler( "onPlayerDamage", root,
function ( )
	if getElementHealth( source ) <= 20 then
		setPedAnimation(thePlayer,"ped","fall_back")
    end
end
)
  

 

راجع كودك

  • Like 2
Posted

function (player)
	if getElementHealth( player ) <= 20 then
		setPedAnimation(player,"ped","fall_back")
    end
end

  

..

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...