Jump to content

x[ طلب ]x مشكلة بالدم مانفع


Recommended Posts

addEventHandler ( "onPlayerWasted", root, function ( _, attacker ) 
    if ( attacker and attacker ~= source and isElement ( attacker ) ) then 
        -- local myRandom = math.random ( 30, 60 ) 
        exports.notices:addNotification("لقد حصلت على 100 دم","success",attacker) 
        setElementHealth ( attacker, getElementHealth ( attacker ) + 35 ) 
    end 
end ) 
  

-- debugscript : notices\sourceS.lua:3: bad argument @ 'triggerClientEvevt' [Expected element at argument 2, got string 'addNofication']

Link to comment

جرب كذا

addEventHandler ( "onPlayerWasted", root, function ( _, attacker ) 
    if ( attacker and attacker ~= source and isElement ( attacker ) ) then 
        triggerClientEvent ('notices', attacker) 
        setElementHealth ( attacker, getElementHealth ( attacker ) + 35 ) 
    end 
end 
) 
  
addEvent('notices', true) 
addEventHandler('notices', root, 
    function () 
        exports.notices:addNotification("لقد حصلت على 100 دم","success") 
    end) 

Link to comment
لقد لصحد على دم 100 كذا

ضبط بس شسالفة الكلام

تأكد من الخط هل يدعم اللغة العربية ولا ,

واذا كان دي اكس الكتابة

فليكن آحسن ان تستخدم default-bold

Link to comment
جرب كذا
addEventHandler ( "onPlayerWasted", root, function ( _, attacker ) 
    if ( attacker and attacker ~= source and isElement ( attacker ) ) then 
        triggerClientEvent ('notices', attacker) 
        setElementHealth ( attacker, getElementHealth ( attacker ) + 35 ) 
    end 
end 
) 
  
addEvent('notices', true) 
addEventHandler('notices', root, 
    function () 
        exports.notices:addNotification("لقد حصلت على 100 دم","success") 
    end) 

لأنه اللي قتل اللاعب اساساً المنت isElement مالها اي فايده

وناقصك تتحقق ان اللي قتل اللاعب هو لاعب مب سياره او شي, عشان لو انقتل بسياره بيرسل تريقر للسياره وبيجي خطأ.

Link to comment
addEventHandler ( "onPlayerWasted", root, function ( _, attacker ) 
    if ( attacker and attacker ~= source and getElementType(attacker) == "player" ) then 
        triggerClientEvent ('notices', attacker) 
        setElementHealth ( attacker, getElementHealth ( attacker ) + 35 ) 
    end 
end 
) 
  
addEvent('notices', true) 
addEventHandler('notices', root, 
function () 
 exports.notices:addNotification("لقد حصلت على 100 دم","success") 
 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...