yasin0 Posted June 4, 2017 Share Posted June 4, 2017 (edited) شباب السلام عليكم المشكلة انه يفتح حتى برتبة الزائر الكود --server die addEvent("check",true) addEventHandler("check",root,function( ) local account = getAccountName(getPlayerAccount(source)) if ( isObjectInACLGroup("user." ..account, aclGetGroup("Console")) ) then triggerClientEvent(source, "openwin", source) end end) client -- function a () if source == window then triggerServerEvent("check",getLocalPlayer()) end end addEventHandler("onClientGUIClick",root,a) function OpenWin() if guiGetVisible ( window ) then guiSetVisible ( window, false ) showCursor(false) guiSetInputEnabled(false) guiSetVisible(aI[1],false) guiSetVisible(aI[2],false) guiSetVisible(aI[3],false) guiSetVisible(aI[4],false) guiSetVisible(aI[5],false) else guiSetVisible ( window, true ) showCursor(true) guiSetInputEnabled(true) guiSetVisible(aI[1],true) guiSetVisible(aI[2],true) guiSetVisible(aI[3],true) guiSetVisible(aI[4],true) guiSetVisible(aI[5],true) end end bindKey("F5", "down", OpenWin) addEvent("openwin",true) addEventHandler("openwin",root,function( ) guiSetEnabled(window,true) showCursor(true) end); طرحت الكود الي فيه مشكلة بس Edited June 4, 2017 by yasin0 1 Link to comment
Ismaeel_finer Posted June 4, 2017 Share Posted June 4, 2017 (edited) addEvent("openwin",true) addEventHandler("openwin", root, function () guiSetVisible(window,true) showCursor(true) end) استبدله من سطر 41 الي 45 Edited June 4, 2017 by Ismaeel_finer Link to comment
^iiEcoo'x_) Posted June 4, 2017 Share Posted June 4, 2017 اخوي انت مسوي لما تضغط ع اللوحة يتحقق , Link to comment
yasin0 Posted June 4, 2017 Author Share Posted June 4, 2017 علمني طريقة الاكواد كيف يعني قصدي بالترتيب وش اسوي عطني الفنشكنات بحاول اسويها Link to comment
w7sH Posted June 4, 2017 Share Posted June 4, 2017 جرب Server: addEvent("check",true) addEventHandler("check",root,function( ) local acc = getPlayerAccount(source) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then triggerClientEvent(source, "openwin", source) end end end) Link to comment
Ismaeel_finer Posted June 4, 2017 Share Posted June 4, 2017 3 hours ago, yasin0 said: ماغيرت شيء انت -- غيرت هادي guiSetVisible(window,true) 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