abofhd Posted September 8, 2015 Share Posted September 8, 2015 السلام عليكم ورحمة الله وبركاتة انا صممت مود الوحة DX المطلوب ابي الوحة تفتح لرتب انا اختارها Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 bindKey isObjectInACLGroup aclGetGroup getAccountName getPlayerAccount triggerClientEvent addEventHandler "onClientRender" Link to comment
abofhd Posted September 8, 2015 Author Share Posted September 8, 2015 bindKey isObjectInACLGroup aclGetGroup getAccountName getPlayerAccount triggerClientEvent addEventHandler "onClientRender" ياخي انا ودي افهم وش ذا ممكن تضيفني سكايب live:x-_l Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 ياخي انا ودي افهم وش ذا ممكن تضيفني سكايب live:x-_l هاذي وظائف تبرمجها بنفسك؟ اذا جديد عليها آبدأ بالأساسيات قبل كل شيء ذذ Link to comment
Rockyz Posted September 8, 2015 Share Posted September 8, 2015 (edited) لم يتم التجربة : Server : -- Server Side : function Open ( player, thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ("OpenWind", source ) end end addEventHandler ( "onResourceStart", root, function () for _,player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "F7", "down", Open ) end end ) Client : -- Client Side : addEvent( "OpenWind", true ) addEventHandler( "OpenWind", localPlayer, function () if ( removeEventHandler("onClientRender",root,FunctionName) ) then removeEventHandler("onClientRender",root,FunctionName) showCursor(false) else addEventHandler("onClientRender",root,FunctionName) showCursor(true) end ) Edited September 9, 2015 by Guest Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 لم يتم التجربة :Server : function Open ( player, thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ("OpenWind", source ) end end bindKey ( player, "F7", "down", Open ) Client : addEvent( "OpenWind", true ) addEventHandler( "OpenWind", localPlayer, function () if ( removeEventHandler("onClientRender",root,FunctionName) ) then removeEventHandler("onClientRender",root,FunctionName) showCursor(false) else addEventHandler("onClientRender",root,FunctionName) showCursor(true) end end ) player = ? طبعاً أغلببكم ناسخين هـ الكود دايم أشوفه وكل مرة أشوفه حشيش if ( removeEventHandler("onClientRender",root,FunctionName) ) then -- اذا الحدث محذوف removeEventHandler("onClientRender",root,FunctionName) -- يحذفه مرة ثانية Link to comment
Rockyz Posted September 8, 2015 Share Posted September 8, 2015 if ( removeEventHandler("onClientRender",root,FunctionName) ) then -- اذا الحدث محذوف removeEventHandler("onClientRender",root,FunctionName) -- يحذفه مرة ثانية يب .. ماخدنه الكود لفتح النافذة الكود فيه شيء ... ؟ Link to comment
iMr.SFA7 Posted September 8, 2015 Share Posted September 8, 2015 \يب .. ماخدنه الكود لفتح النافذة الكود فيه شيء ... ؟ البلاير بالسيرفر غير معرف Link to comment
TAPL Posted September 9, 2015 Share Posted September 9, 2015 لم يتم التجربة :Server : -- Server Side : function Open ( player, thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ("OpenWind", source ) end end addEventHandler ( "onResourceStart", root, function () for _,player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "F7", "down", Open ) end end ) Client : -- Client Side : addEvent( "OpenWind", true ) addEventHandler( "OpenWind", localPlayer, function () removeEventHandler("onClientRender",root,FunctionName) showCursor(false) else addEventHandler("onClientRender",root,FunctionName) showCursor(true) end ) الكود مليان اخطاء فاقد الشيء لا يعطيه Link to comment
Rockyz Posted September 9, 2015 Share Posted September 9, 2015 الكود مليان اخطاء فاقد الشيء لا يعطيه ي تابل قول لنا الاخطاء بنصححها , لان كذا مافيه فايدة Link to comment
iMr.SFA7 Posted September 9, 2015 Share Posted September 9, 2015 غيـر معـرف thePlayer بالسيرفر الـ والكلنت تسوي عكس للشرط وآصلاً مافي شرط؟ F7 والسكربت أول مايشتغل يجيب اللاعبين الي موجودين و الآن هذا يعني آذاً دخل لاعب ما راح يقدر يشغل الوظيفة حقت الزر Link to comment
' A F . Posted September 9, 2015 Share Posted September 9, 2015 -- Client bindKey('f7','down', function ( ) triggerServerEvent('isGroup',localPlayer) end) addEvent('Open',true) addEventHandler('Open',root, function ( ) -- Your Code end) -- Server addEvent('isGroup',true) addEventHandler('isGroup',root, function ( ) if ( isObjectInACLGroup ( 'user.'..getAccountName ( getPlayerAccount ( client ) ) ,aclGetGroup('Console') ) ) then triggerClientEvent(client,'Open',client) 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