Jump to content

x[ مشكلة ]x استعمال dxdrawtext


Recommended Posts

السلام عليكم انا استعملت وضيفة

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
ممكن مثال مافهمت للويكي كويس
-- # 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

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...