KaduRo Posted April 25, 2014 Share Posted April 25, 2014 السلام عليكم يا اخوان سويت كود بسيط وهو يتحقق إذا وصل طاقة اللاعب تحت الـ 5 , ترجع طاقته 100 كل مرة توصل لأقل من الـ 5 بس ابيه يكون كل ماوصلت طاقته تحت الـ 5 ترجع كاملة هذا الكود بس محتاج الحدث سيرفر function Good(source) if getElementHealth(source) <= 70 then setTimer(setElementHealth ,50 , 1 , source , 100) outputChatBox("Done") end end Link to comment
#DRAGON!FIRE Posted April 25, 2014 Share Posted April 25, 2014 addEventHandler( "onPlayerDamage", root, function( ) if ( getElementHealth( source ) < 5 ) then setElementHealth( source, 100 ) outputChatBox( "* Done", source ) end end ) Link to comment
KaduRo Posted April 25, 2014 Author Share Posted April 25, 2014 نسيت هذا الحدث ههههه ^ مشكور !! 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