™!>VàLéNTiNô<!™ Posted June 22, 2014 Share Posted June 22, 2014 بسم الله الرحمن الرحيم اسف على الغياب الطويل بس كان الواحد ساحب على البرمجة فترة بس رجعت من فترة والحمدلله وصاضفتنى مشكلة addEventHandler('onPlayerDamage',root, function (attacker) if attacker ~= source and getElementType (attacker) == 'player' and getElementData (source,'Group') == groupName and getElementData (attacker,'Group') == groupName then cancelEvent (true) end end ) ا المشكلة ان الكود لا يعمل ولايوجد اخطاء بالديبوق + addEventHandler('onPlayerDamage',root, function (attacker) if attacker ~= source and getElementType (attacker) == 'player' and getElementData (source,'Group') == groupName and getElementData (attacker,'Group') == groupName then killPlayer (attacker) end end ) لما سويتو يقتل اللاعب بديلن عن ايقاف الحدث لتجربة هل يوجد اخطاء بالكود عمل الكود بشكل صحيح 100 % هل المشكلة من ان اللعبة مبرمجة على منع ايقاف احداث الضرب والقتل والتصويب ام لا ؟ بانتظار افادتكم وشكرا Link to comment
Simba Posted June 22, 2014 Share Posted June 22, 2014 على ما اظن ان onPlayerDamage ما تتكنسل !! بس جرب حدث الكلينت onClientPlayerDamage +واذا بتسوي قتل للاعب استخدم الترايقر + عشان تتحقق من ان الي لمس الماركر لاعب فيفضل انك تستخدم if attacker == localPlayer then Link to comment
Max+ Posted June 22, 2014 Share Posted June 22, 2014 addEventHandler('onClientPlayerDamage',root, function (attacker) if ( attacker and attacker ~= source and getElementType(attacker) == 'player' and getElementData (source,'Group') == groupName and getElementData (attacker,'Group') == groupName ) then cancelEvent ( ) end end ) Canceling this event has no effect. Cancel the client-side event onClientPlayerDamage instead. Link to comment
#DRAGON!FIRE Posted June 23, 2014 Share Posted June 23, 2014 . ما يتكنسل ( onPlayerDamage ) حدث Link to comment
™!>VàLéNTiNô<!™ Posted June 24, 2014 Author Share Posted June 24, 2014 addEventHandler('onClientPlayerDamage',root, function (attacker) if ( attacker and attacker ~= source and getElementType(attacker) == 'player' and getElementData (source,'Group') == groupName and getElementData (attacker,'Group') == groupName ) then cancelEvent ( ) end end ) Canceling this event has no effect. Cancel the client-side event onClientPlayerDamage instead. شكرا لك الكود يعمل بنجاح Link to comment
™!>VàLéNTiNô<!™ Posted June 24, 2014 Author Share Posted June 24, 2014 . ما يتكنسل ( onPlayerDamage ) حدث اها شكرا لك على المعومة تمت الافادة شكرا لكل من حاول المساعدة 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