Adham Posted July 11, 2016 Share Posted July 11, 2016 الكود معطهولي يفتح للرتب المحدده في الجدول المشكله لما حد بيفتح الوحه بتفتح للكل كلنت function Open() triggerServerEvent("gett",localPlayer) end bindKey( "M","down",Open) function Strong ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس guiSetInputEnabled ( true ) end addEvent ( "Strong", true ) addEventHandler ( "Strong", root, Strong ) -------- سرفر local Groups = { { "Console"}, {"Police" }, {"Level 1"}, {"Level 2"}, {"Level 3"}, {"Level 4"}, {"Level 5"}, {"Level 6"}, {"Head.Admin"}, } function isPlayerAdmin() for k,v in ipairs ( Groups ) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup(v[1])) ) then return true end end end addEvent("gett",true) addEventHandler("gett",root, function () if ( isPlayerAdmin (source) ) then triggerClientEvent("Strong",source) end end ) Link to comment
3NAD Posted July 11, 2016 Share Posted July 11, 2016 triggerClientEvent(source,"Strong",resourceRoot) 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