[KilleR] Posted June 2, 2016 Share Posted June 2, 2016 (edited) السلام عليكم ورحمة الله وبركاتة حيرني شي-- مع اني مبرمج جديد سويت كل شي وماشتغلت اللوحة عباره عن جلب اسم اللاعب ورتبته من الادامن والي يفتح اللوحة كونسل والادامن خلهم كونسل الي تجي حسابهم واسمهم وانا اعدلها بعدين اعتقد اخطيت بالاكواد يرجى تعديل صح انا سويت اذا ضغط على الزر يقوله بالشات منور مود كيلر لاتحدفوه كلنت GUIEditor = { button = {}, edit = {}, window = {}, gridlist = {}, label = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(245, 103, 323, 413, "لوحة الادارهـ", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 303, 305, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "الحساب", 0.3) getAccountName(previous_account).." Logged into "..getAccountName(current_account)) then guiGridListAddColumn(GUIEditor.gridlist[1], "الاسم", 0.3) local account = getPlayerAccount(thePlayer) then GUIEditor.button[1] = guiCreateButton(0, 307, 154, 47, "", false, GUIEditor.gridlist[1]) GUIEditor.label[1] = guiCreateLabel(111, 313, 100, 31, "", false, GUIEditor.gridlist[1]) GUIEditor.button[2] = guiCreateButton(10, 381, 86, 23, "×", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(102, 385, 144, 26, "Created By KilleR", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) addEventHandler("onClientGUIClick", GUIEditor.button[2], function()outputChatBox('-( منور مود كيلر لمعرفة الادامن )- ',root,math.random(255),math.random(255),math.random(255),true)end,false) then addEventHandler("onClientGUIClick",resourceRoot function ( ) if ( source == button2 ) then guiSetVisible(wnd,false) showCursor(false) end end ) addEvent ( "OpenWindow", true ) addEventHandler ( "OpenWindow", root, function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) سيرفر local Groups = { "Level 4", "Level 5", "Level 6", "Head.Admin", "Console", } addCommandHandler ( "KilleR", function ( p ) for _,Server in ipairs ( Groups ) do if ( isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( p ) ) ), aclGetGroup ( "Server" ) ) then triggerClientEvent ( p, "OpenWindow", p ) end end end ) Edited June 2, 2016 by Guest Link to comment
nxFairlywell Posted June 2, 2016 Share Posted June 2, 2016 وين الكود اللي يجيب اسماء اللاعبين وحساباتهم بشوفه Link to comment
[KilleR] Posted June 2, 2016 Author Share Posted June 2, 2016 موجود تحت الجريد ليست الكلومن Link to comment
' A F . Posted June 2, 2016 Share Posted June 2, 2016 تـم سويته لك .. -- Client GUIEditor = { button = {}, edit = {}, window = {}, gridlist = {}, label = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(245, 103, 323, 413, "لوحة الادارهـ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1] , false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 21, 303, 305, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "الحساب", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "الاسم", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "الرتبة", 0.9) GUIEditor.button[1] = guiCreateButton(0, 307, 154, 47, "", false, GUIEditor.gridlist[1]) GUIEditor.label[1] = guiCreateLabel(111, 313, 100, 31, "", false, GUIEditor.gridlist[1]) GUIEditor.button[2] = guiCreateButton(10, 381, 86, 23, "×", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(102, 385, 144, 26, "Created By KilleR", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) end ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) outputChatBox('-( منور مود كيلر لمعرفة الادامن )- ',math.random(255),math.random(255),math.random(255),true) end end ) addEvent ( "OpenWindow", true ) addEventHandler ( "OpenWindow", root, function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) guiGridListClear ( GUIEditor.gridlist[1] ) for Index,Players in ipairs ( getElementsByType("player") ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 1 , tostring ( getElementData ( Players , "Account_" ) ) , false , false ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 2 , tostring ( getPlayerName ( Players ) ) , false , false ) local acl = getElementData ( Players , "Acls_" ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 3 , tostring( table.concat(acl, ", ") ) , false , false ) end end ) -- Server function getPlayerGroups(thePlayer) local acls = {} local account = getPlayerAccount(thePlayer) if (account) and not (isGuestAccount(account)) then local accountName = getAccountName(account) for i,group in ipairs(aclGroupList()) do if (isObjectInACLGroup( "user." ..accountName, group)) then local groupName = aclGroupGetName(group) table.insert(acls, groupName) end end end return acls end addEventHandler("onResourceStart",resourceRoot, function ( ) for Index,Players in ipairs ( getElementsByType("player") ) do local Account = getPlayerAccount ( Players ) if ( not isGuestAccount ( Account ) ) then setElementData ( Players , "Account_" , getAccountName ( Account ) ) setElementData ( Players , "Acls_" , getPlayerGroups ( Players ) ) else setElementData ( Players , "Account_" , "N/A") setElementData ( Players , "Acls_" , "N/A") end end end ) addEventHandler("onPlayerJoin",root, function ( ) setElementData ( source , "Account_" , "N/A") setElementData ( source , "Acls_" , "N/A") end ) addEventHandler("onPlayerLogin",root, function ( _ , acc ) setElementData ( Players , "Account_" , getAccountName ( acc ) ) setElementData ( Players , "Acls_" , getPlayerGroups ( source ) ) end ) addEventHandler("onPlayerLogout",root, function ( ) setElementData ( source , "Account_" , "N/A") setElementData ( source , "Acls_" , "N/A") end ) ----- local Groups = { "Level 4", "Level 5", "Level 6", "Head.Admin", "Console", } addCommandHandler ( "KilleR", function ( p ) for _,Server in ipairs ( Groups ) do if ( isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( p ) ), aclGetGroup ( Server ) ) ) then triggerClientEvent ( p, "OpenWindow", p ) end end end ) Link to comment
[KilleR] Posted June 2, 2016 Author Share Posted June 2, 2016 ياخوي - الي يجي حسابته ونكاتهم فقط كونسل صح؟ Link to comment
[KilleR] Posted June 2, 2016 Author Share Posted June 2, 2016 (edited) -- الي يفتح الرتب -- Level 5 Level 6 Head.Admin Console Edited June 4, 2016 by Guest Link to comment
[KilleR] Posted June 2, 2016 Author Share Posted June 2, 2016 لاهنت ابي تسويه ^ نفسه الي قلتلك عليه - الحساب مايجي يقول false بالخانه والاسم مظبوط وتمام - ابي يجي حسابات ونكات الرتب الي حطيتها لك 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