Scripting Moderators xLive Posted July 17, 2016 Scripting Moderators Share Posted July 17, 2016 آلسلآم عليكم عندي لوحة ومقفل فيه تآب وآبيه يفتح لـ قروب Admin بـ كوماند guiSetEnabled(GUIEditor.tab[2],true) حاولت آخليه ب ترايقرات انه لمن يسجل دخول بس م عرفت لها آتمنى أحد يسآعدني ..ِ ومشكورين Link to comment
saitama Posted July 17, 2016 Share Posted July 17, 2016 addCommandHandler("الامر", function () guiSetEnabled(aTab2.Tab,true) end) حطه اخر شي ب admin_main Link to comment
Scripting Moderators xLive Posted July 17, 2016 Author Scripting Moderators Share Posted July 17, 2016 addCommandHandler("الامر", function () guiSetEnabled(aTab2.Tab,true) end) حطه اخر شي ب admin_main يخوي انا م قلت ابي افتح تاب في مود الأدمنيةة انا قلت لك انا مسوي لوحة وحاط فيه تابين تاب للزوار وتاب مقفله عشان ابي اخليه يلي معهم قروب ادمن ينفتح لهم بس م عرفت لها Link to comment
Adham Posted July 17, 2016 Share Posted July 17, 2016 (edited) guiSetEnabled -- false triggerServerEvent addEvent addEventHandler guiSetEnabled -- true --- Server --- GroupsAdmin = { -- سوي لوب للرتب التبيها تفتح له addEvent addEventHandler for _, v in ipairs isObjectInACLGroup triggerClientEvent return false Edited July 17, 2016 by Guest Link to comment
Scripting Moderators xLive Posted July 17, 2016 Author Scripting Moderators Share Posted July 17, 2016 guiSetEnabled triggerServerEvent addEvent addEventHandler guiSetEnabled -- true --- Server --- GroupsAdmin = { -- سوي لوب للرتب التبيها تفتح له addEvent addEventHandler for _, v in ipairs isObjectInACLGroup triggerClientEvent شكرآ , بس for _, v in ipairs م فهمت لها Link to comment
Adham Posted July 17, 2016 Share Posted July 17, 2016 مثلن انت عامل الجداول كذا GroupsAdmin = { [1] = {Group='Police'} } تحط في السطر كذا تحت for _, v in ipairs(GroupsAdmin) do if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then حاول بالكود وبساعدك فيه ^ Link to comment
Scripting Moderators xLive Posted July 17, 2016 Author Scripting Moderators Share Posted July 17, 2016 أعذرني تعبتك معك شوي مب متاكد انه الكود صح او فيه خطا الكلينت addEvent( "opentab", true ) addEventHandler( "opentab", resourceRoot, function () guiSetEnabled(GUIEditor.tab[2],true) -- التاب مقفله من قبل triggerServerEvent ("opentab", getLocalPlayer()) end ) السيرفر GroupsAdmin = { [1] = {Group='Admin'} [2] = {Group='Console'} } addEvent("opentab",true) addEventHander("onPlayerLogin",root, function () for _, v in ipairs(GroupsAdmin) do if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then triggerClientEvent(player,"opentab") end end ) Link to comment
Adham Posted July 17, 2016 Share Posted July 17, 2016 guiSetEnabled (tab,false) triggerServerEvent ("Open",localPlayer) addEvent ("Open2",true) addEventHandler ("Open2",root, function () guiSetEnabled (tab,true) end) GroupsAdmin = { [1] = {Group='Admin'}, [2] = {Group='Console'}, } addEvent('Open',true) addEventHandler('Open',root, function ( ) for _, v in ipairs(GroupsAdmin) do if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then triggerClientEvent(source,"Open2",source) return false end end end) Link to comment
Scripting Moderators xLive Posted July 17, 2016 Author Scripting Moderators Share Posted July 17, 2016 guiSetEnabled (tab,false) triggerServerEvent ("Open",localPlayer) addEvent ("Open2",true) addEventHandler ("Open2",root, function () guiSetEnabled (tab,true) end) GroupsAdmin = { [1] = {Group='Admin'}, [2] = {Group='Console'}, } addEvent('Open',true) addEventHandler('Open',root, function ( ) for _, v in ipairs(GroupsAdmin) do if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then triggerClientEvent(source,"Open2",source) return false end 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