saitama Posted July 14, 2016 Share Posted July 14, 2016 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
saitama Posted July 14, 2016 Author Share Posted July 14, 2016 (edited) deleted Edited July 14, 2016 by Guest Link to comment
N3xT Posted July 14, 2016 Share Posted July 14, 2016 جرب كذا 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
saitama Posted July 14, 2016 Author Share Posted July 14, 2016 لقد لصحد على دم 100 كذا ضبط بس شسالفة الكلام Link to comment
' A F . Posted July 14, 2016 Share Posted July 14, 2016 لقد لصحد على دم 100 كذاضبط بس شسالفة الكلام تأكد من الخط هل يدعم اللغة العربية ولا , واذا كان دي اكس الكتابة فليكن آحسن ان تستخدم default-bold Link to comment
saitama Posted July 14, 2016 Author Share Posted July 14, 2016 شكرا لكل من ساعدني بالموضوع Link to comment
فاّرس Posted July 14, 2016 Share Posted July 14, 2016 جرب كذا 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
saitama Posted July 14, 2016 Author Share Posted July 14, 2016 طيب شاطح لو سمحت اذا قدرت صححه واكون شاكر لك Link to comment
' A F . Posted July 14, 2016 Share Posted July 14, 2016 شكرا لكل من ساعدني بالموضوع العفو حياك الله Link to comment
Ahmed Ly Posted July 14, 2016 Share Posted July 14, 2016 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
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