saitama Posted July 7, 2016 Share Posted July 7, 2016 السلام عليكم انا استعملت وضيفة dxDrawText عشان اخلي الكلام تحت بس ماعرفت كيف حاولت addEventHandler ( "onPlayerWasted", root, function ( _, attacker ) if ( attacker and attacker ~= source and isElement ( attacker ) ) then -- local myRandom = math.random ( 30, 60 ) setElementHealth ( attacker, getElementHealth ( attacker ) + 35 ) dxDrawText ( you have give health 35+, 5, 3, #FF0000, "defualt" ) end end ) Link to comment
saitama Posted July 7, 2016 Author Share Posted July 7, 2016 ممكن مثال مافهمت للويكي كويس Link to comment
' A F . Posted July 7, 2016 Share Posted July 7, 2016 ممكن مثال مافهمت للويكي كويس -- # Server Side addEventHandler ( "onPlayerWasted", root, function ( _, attacker ) if ( attacker and attacker ~= source and isElement ( attacker ) ) then setElementHealth ( attacker, getElementHealth ( attacker ) + 35 ) triggerClientEvent ( attacker , "dxText" , attacker ) end end ) -- # Client Side addEvent("dxText",true) addEventHandler("dxText",root, function ( ) -- Your Code end) Link to comment
' A F . Posted July 7, 2016 Share Posted July 7, 2016 شنو قصدك ب Your Code يعني الكود الي تبيه يصير لـ القاتل .. Link to comment
' A F . Posted July 7, 2016 Share Posted July 7, 2016 شكرا العفو حياك الله , في اي وقت Link to comment
|Mr|-Talal07-| Posted July 7, 2016 Share Posted July 7, 2016 الوظيفه ما تشتغل الا مع الحدث ذا "onClientRender" 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