+Source|> Posted June 12, 2017 Share Posted June 12, 2017 وش الكود اللي يحمي اللاعب يعني لو احد فجره باربي جي ما يموت لو وش صار Link to comment
Mhmd.z Posted June 12, 2017 Share Posted June 12, 2017 'onClientPlayerDamage' cancelEvent Link to comment
+Source|> Posted June 12, 2017 Author Share Posted June 12, 2017 1 minute ago, Mhmd.z said: 'onClientPlayerDamage' cancelEvent addEventHandler("onPlayerDamage", root, function() if isPedFrozen then cancelEvent() end end ) ما اشتغل Link to comment
Mhmd.z Posted June 12, 2017 Share Posted June 12, 2017 Just now, A7MEDENO said: addEventHandler("onPlayerDamage", root, function() if isPedFrozen then cancelEvent() end end ) ما اشتغل onClientPlayerDamage اول شي الحدث يوم الاعب يتضرر بملف سيرفر مارح يكنسله , استخدم حدث كلنت isPedFrozen(source) ثاني شي مو حاط الارقمنت بالتحقق خليه كذه Link to comment
#STZ Posted June 12, 2017 Share Posted June 12, 2017 (edited) addEventHandler("onClientPlayerDamage", getLocalPlayer(), function() if isPedFrozen(localPlayer) then cancelEvent() end end ) Edited June 12, 2017 by #STZ Link to comment
+Source|> Posted June 12, 2017 Author Share Posted June 12, 2017 5 minutes ago, Mhmd.z said: onClientPlayerDamage اول شي الحدث يوم الاعب يتضرر بملف سيرفر مارح يكنسله , استخدم حدث كلنت isPedFrozen(source) ثاني شي مو حاط الارقمنت بالتحقق خليه كذه 5 minutes ago, #STZ said: addEventHandler("onPlayerDamage", root, function() if isPedFrozen(source) then cancelEvent() end end ) شكرا لكم صدقت في السيرفر ما يسوي كانسل بس هل cancelEvent() في اي حال لازم كلينت؟؟ Link to comment
#STZ Posted June 12, 2017 Share Posted June 12, 2017 (edited) @A7MEDENO لا تكنسل اي حدث + #Deleted Edited June 13, 2017 by !#NssoR_) Link to comment
Dragon Fire Posted June 12, 2017 Share Posted June 12, 2017 (edited) #Deleted اخوي فيه كلام ما قريته بالصفحة شوف https://wiki.multitheftauto.com/wiki/IsPedFrozen وحاطين تحذير وترجمتها طلع انهم راح يوقفون هذي الوظيفة واستخدامها غير ثابت وما تكون موجودة بالاصدارات المستقبلية استخدم هذي بدالها : isElementFrozen Edited June 13, 2017 by !#NssoR_) Link to comment
+Source|> Posted June 12, 2017 Author Share Posted June 12, 2017 كيف اسوي bindKey في سيرفر لاني نسيت ض local afk = getAccountName( getPlayerAccount(source) ) function() if isObjectInACLGroup("user."..afk, aclGetGroup("Console")) then triggerClientEvent(player, "openafk", player) else triggerClientEvent(player, "noopenafk", player) 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