#StrOnG_,) Posted July 14, 2015 Share Posted July 14, 2015 السلام عليكم ورحمه الله وبركاته كيفكم شباب ؟ أن شاء الله بخير .. ألمهمم ابي فنكشن من اضغط على زر يخلي اللاعب الي ضغط على الزر يخليه ما يموت يعني يخليه بس هو ما يموت اتمنى فهمتو علي وشكراً Link to comment
N3xT Posted July 14, 2015 Share Posted July 14, 2015 Event -- onClientPlayerDamage cancelEvent Link to comment
#StrOnG_,) Posted July 14, 2015 Author Share Posted July 14, 2015 Event -- onClientPlayerDamage cancelEvent صح ولا خطأ ؟ addEventHandler("onClientGUIClick",root, function () if source == Button then cancelEvent () end addEventHandler ( "onPlayerDamage", getRootElement (), Link to comment
Mr.R Posted July 14, 2015 Share Posted July 14, 2015 Event -- onClientPlayerDamage cancelEvent صح ولا خطأ ؟ addEventHandler("onClientGUIClick",root, function () if source == Button then cancelEvent () end addEventHandler ( "onPlayerDamage", getRootElement (), ايفنت "onPlayerDamage" مايتكنسل : ) Link to comment
TAPL Posted July 14, 2015 Share Posted July 14, 2015 Event -- onClientPlayerDamage cancelEvent صح ولا خطأ ؟ addEventHandler("onClientGUIClick",root, function () if source == Button then cancelEvent () end addEventHandler ( "onPlayerDamage", getRootElement (), ؟onPlayerDamage انت على اي اساسا حطيت onClientPlayerDamage بلاك نكست بكل وضوح كاتب و عموماً انت الي مسويه هريس addEventHandler("onClientGUIClick", root, function() if source == Button then addEventHandler("onClientPlayerDamage", localPlayer, cancelEvent) end end) Link to comment
#StrOnG_,) Posted July 14, 2015 Author Share Posted July 14, 2015 Event -- onClientPlayerDamage cancelEvent صح ولا خطأ ؟ addEventHandler("onClientGUIClick",root, function () if source == Button then cancelEvent () end addEventHandler ( "onPlayerDamage", getRootElement (), ؟onPlayerDamage انت على اي اساسا حطيت onClientPlayerDamage بلاك نكست بكل وضوح كاتب و عموماً انت الي مسويه هريس addEventHandler("onClientGUIClick", root, function() if source == Button then addEventHandler("onClientPlayerDamage", localPlayer, cancelEvent) end end) ما انتبهت للكود , لاني دخلت الويكي وبحثته يعطيك العافية بس ابي اخليه لما يضغط على الزر مره ثانية يصير يموت ولما يضغطه يرجع ما يموت وكذا Link to comment
i S6O Posted July 14, 2015 Share Posted July 14, 2015 Event -- onClientPlayerDamage cancelEvent صح ولا خطأ ؟ addEventHandler("onClientGUIClick",root, function () if source == Button then cancelEvent () end addEventHandler ( "onPlayerDamage", getRootElement (), انت بكودك كذا تنكسل حدث الظغط على الزر + Event onPlayerDamage سيرفر ليس كلنت. Link to comment
ByeByeMTA Posted July 14, 2015 Share Posted July 14, 2015 برضو لا تنسون الحدث "onClientPlayerStealthKill" لازم يتكنسل عشان اللاعب ماينذبح بالسكين او النحر Link to comment
TAPL Posted July 14, 2015 Share Posted July 14, 2015 addEventHandler("onClientGUIClick", root, function() if source == Button then if not cDMG then addEventHandler("onClientPlayerDamage", localPlayer, cancelEvent) else removeEventHandler("onClientPlayerDamage", localPlayer, cancelEvent) end cDMG = not cDMG end end) Link to comment
#StrOnG_,) Posted July 14, 2015 Author Share Posted July 14, 2015 addEventHandler("onClientGUIClick", root, function() if source == Button then if not cDMG then addEventHandler("onClientPlayerDamage", localPlayer, cancelEvent) else removeEventHandler("onClientPlayerDamage", localPlayer, cancelEvent) end cDMG = not cDMG end 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