Jump to content

mr.sony

Members
  • Posts

    80
  • Joined

  • Last visited

Everything posted by mr.sony

  1. يمكن عشان انا ضايف المود للوحة اف 9 ؟ SONY لما اضغط عليه يسوي النسخ فارغ واسم حسابي هو
  2. PPP = getLocalPlayer() GUIEditor = { label = {} } local screenW, screenH = guiGetScreenSize() INFORM_WND = guiCreateWindow(521, 210, 324, 348, "❖『لوحـة معلـومات اللاعـب 』❖", false) guiWindowSetSizable(INFORM_WND, false) guiSetAlpha(INFORM_WND, 1.00) guiSetProperty(INFORM_WND, "CaptionColour", "FF00FED8") guiSetVisible(INFORM_WND,false) label1 = guiCreateLabel(117, 139, 93, 18, "=『 سريـالكـ 』=", false, INFORM_WND) guiLabelSetColor(label1, 251, 253, 0) guiLabelSetHorizontalAlign(label1, "center", false) guiLabelSetVerticalAlign(label1, "center") Serial_Copy = guiCreateButton(107, 167, 108, 40, "❍【 نسـخ 】❍", false, INFORM_WND) guiSetProperty(Serial_Copy, "NormalTextColour", "FF3BFC00") label2 = guiCreateLabel(103, 37, 122, 20, "=『 إسم حسابـكـ 』=", false, INFORM_WND) guiLabelSetColor(label2, 251, 253, 0) guiLabelSetHorizontalAlign(label2, "center", false) guiLabelSetVerticalAlign(label2, "center") AccName_Copy = guiCreateButton(107, 67, 108, 40, "❍【 نسـخ 】❍", false, INFORM_WND) guiSetProperty(AccName_Copy, "NormalTextColour", "FF3BFC00") label3 = guiCreateLabel(114, 237, 96, 18, "=『 النـكـ نيـم 』=", false, INFORM_WND) guiLabelSetColor(label3, 251, 253, 0) guiLabelSetHorizontalAlign(label3, "center", false) guiLabelSetVerticalAlign(label3, "center") NickName_Copy = guiCreateButton(107, 265, 108, 40, "❍【 نسـخ 】❍", false, INFORM_WND) guiSetProperty(NickName_Copy, "NormalTextColour", "FF3BFC00") label5 = guiCreateLabel(11, 320, 96, 18, "By: MƬA ƑἷLMЄَƳ", false, INFORM_WND) guiLabelSetHorizontalAlign(label5, "center", false) Close_Button = guiCreateButton(277, 316, 29, 22, "✘", false, INFORM_WND) guiSetProperty(Close_Button, "NormalTextColour", "FFFC0000") Serial_EDIT = guiCreateEdit(1012, 281, 348, 30, "",false,INFORM_WND) guiSetText(Serial_EDIT,"" .. getPlayerSerial()) guiSetAlpha(Serial_EDIT, 0.00) guiEditSetReadOnly(Serial_EDIT, true) Acc__EDIT = guiCreateEdit(1012, 327, 348, 30, "",false,INFORM_WND) guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) guiSetAlpha(Acc__EDIT, 0.00) guiEditSetReadOnly(Acc__EDIT, true) NickName_EDIT = guiCreateEdit(1012, 372, 348, 30, "",false,INFORM_WND) guiSetText(NickName_EDIT,"" .. getPlayerName(localPlayer) ) guiSetAlpha(NickName_EDIT, 0.00) guiEditSetReadOnly(NickName_EDIT, true) addEventHandler( "onClientElementDataChange", root, function( dataName, OldValue ) if ( source and dataName == "AccountName" ) then guiGetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) end end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) guiSetText(NickName_EDIT,"" .. newNick ) end ) addEventHandler("onClientGUIClick",root, function () if source == Close_Button then if ( guiGetVisible(INFORM_WND) == false ) then showCursor(true) end guiSetVisible ( INFORM_WND, false ) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == NickName_Copy ) then local aName_ = getPlayerName ( localPlayer ); setClipboard( aName_ ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == NickName_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(NickName_Copy, true) guiSetText ( source, "تم نسخ النك نيم" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "❍【 نسـخ 】❍" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, NickName_Copy, true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == Serial_Copy ) then local text = guiGetText ( Serial_EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Serial_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(Serial_Copy, true) guiSetText ( source, "تم نسخ السيريال" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "❍【 نسـخ 】❍" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, Serial_Copy, true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == AccName_Copy ) then local text = guiGetText ( Acc__EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == AccName_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(AccName_Copy, true) guiSetText ( source, "تم نسخ الحساب" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "❍【 نسـخ 】❍" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, AccName_Copy, true) end end ) addEventHandler( "onClientElementDataChange", root, function( dataName, OldValue ) if ( source and dataName == "AccountName" ) then guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) end end )
  3. شكرا على الرد حطيت الكود بس ماظبط شوف بس لسة مابينسخ
  4. انا اصلا مافاهم يعني ايه مبتدئ ...
  5. السلام عليكم ورحمة الله وبركاته _______________________________________________ عندي مود معلومات اللاعب الي فيه نسخ إسم الحساب والسريال والنك نيم ...بس المشكلة لما ادوس نسخ النك نيم مابيتنسخ .! ____________________________________________________________________ صورة للوحة ____________________________________________________________________ أكواد المود : ____________________________________________________________________ PPP = getLocalPlayer() GUIEditor = { label = {} } local screenW, screenH = guiGetScreenSize() INFORM_WND = guiCreateWindow(521, 210, 324, 348, "❖『لوحـة معلـومات اللاعـب 』❖", false) guiWindowSetSizable(INFORM_WND, false) guiSetAlpha(INFORM_WND, 1.00) guiSetProperty(INFORM_WND, "CaptionColour", "FF00FED8") guiSetVisible(INFORM_WND,false) label1 = guiCreateLabel(117, 139, 93, 18, "=『 سريـالكـ 』=", false, INFORM_WND) guiLabelSetColor(label1, 251, 253, 0) guiLabelSetHorizontalAlign(label1, "center", false) guiLabelSetVerticalAlign(label1, "center") Serial_Copy = guiCreateButton(107, 167, 108, 40, "❍【 نسـخ 】❍", false, INFORM_WND) guiSetProperty(Serial_Copy, "NormalTextColour", "FF3BFC00") label2 = guiCreateLabel(103, 37, 122, 20, "=『 إسم حسابـكـ 』=", false, INFORM_WND) guiLabelSetColor(label2, 251, 253, 0) guiLabelSetHorizontalAlign(label2, "center", false) guiLabelSetVerticalAlign(label2, "center") AccName_Copy = guiCreateButton(107, 67, 108, 40, "❍【 نسـخ 】❍", false, INFORM_WND) guiSetProperty(AccName_Copy, "NormalTextColour", "FF3BFC00") label3 = guiCreateLabel(114, 237, 96, 18, "=『 النـكـ نيـم 』=", false, INFORM_WND) guiLabelSetColor(label3, 251, 253, 0) guiLabelSetHorizontalAlign(label3, "center", false) guiLabelSetVerticalAlign(label3, "center") NickName_Copy = guiCreateButton(107, 265, 108, 40, "❍【 نسـخ 】❍", false, INFORM_WND) guiSetProperty(NickName_Copy, "NormalTextColour", "FF3BFC00") label5 = guiCreateLabel(11, 320, 96, 18, "By: MƬA ƑἷLMЄَƳ", false, INFORM_WND) guiLabelSetHorizontalAlign(label5, "center", false) Close_Button = guiCreateButton(277, 316, 29, 22, "✘", false, INFORM_WND) guiSetProperty(Close_Button, "NormalTextColour", "FFFC0000") Serial_EDIT = guiCreateEdit(1012, 281, 348, 30, "",false,INFORM_WND) guiSetText(Serial_EDIT,"" .. getPlayerSerial()) guiSetAlpha(Serial_EDIT, 0.00) guiEditSetReadOnly(Serial_EDIT, true) Acc__EDIT = guiCreateEdit(1012, 327, 348, 30, "",false,INFORM_WND) guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) guiSetAlpha(Acc__EDIT, 0.00) guiEditSetReadOnly(Acc__EDIT, true) NickName_EDIT = guiCreateEdit(1012, 372, 348, 30, "",false,INFORM_WND) guiSetText(NickName_EDIT,"" .. getPlayerName(localPlayer) ) guiSetAlpha(NickName_EDIT, 0.00) guiEditSetReadOnly(NickName_EDIT, true) addEventHandler( "onClientElementDataChange", root, function( dataName, OldValue ) if ( source and dataName == "AccountName" ) then guiGetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) end end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) guiSetText(NickName_EDIT,"" .. newNick ) end ) addEventHandler("onClientGUIClick",root, function () if source == Close_Button then if ( guiGetVisible(INFORM_WND) == false ) then showCursor(true) end guiSetVisible ( INFORM_WND, false ) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == NickName_Copy ) then local text = guiGetText ( NickName_EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == NickName_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(NickName_Copy, true) guiSetText ( source, "تم نسخ النك نيم" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "❍【 نسـخ 】❍" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, NickName_Copy, true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == Serial_Copy ) then local text = guiGetText ( Serial_EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Serial_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(Serial_Copy, true) guiSetText ( source, "تم نسخ السيريال" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "❍【 نسـخ 】❍" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, Serial_Copy, true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == AccName_Copy ) then local text = guiGetText ( Acc__EDIT ) setClipboard( text ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == AccName_Copy ) then if ( isTimer ( TimerEnabled ) ) then return end guiSetEnabled(AccName_Copy, true) guiSetText ( source, "تم نسخ الحساب" ) TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "❍【 نسـخ 】❍" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, AccName_Copy, true) end end ) addEventHandler( "onClientElementDataChange", root, function( dataName, OldValue ) if ( source and dataName == "AccountName" ) then guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) end end ) ____________________________________________________________________ أرجو مساعدتي ...حاولت كثير وماعرفت
  6. كيف أسويها مابعرف ممكن تسويها لو سمحت
  7. شكرا يبطل ... صاحب الإستضافة حدث السيرفر
  8. السلام عليكم ورحمة الله وبركاته ______________________________________________________________________________________ أبي أعدل على لوحة الأدمنية وبالتحديد ف الأسل ...يعني أبي أخلي رتبة أسل ماترقي أي رتبة يعني رتب معينة يعني الي معه رتبة اسل مايقدر يرقي كونسل وكذا يعني رتب أحددها أنا...وكمان مايقدر يسحب أي رتبة,بس رتبة أحددها أنا .... admin_acl حاولت أسوي كذا بس ماعرفت أبرمج هاي الشغلة...بطرح لكم كود ______________________________________________________________________________________ --[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_acl.lua * * Original File by lil_Toady * **************************************]] aAclForm = nil aAclData = {} function aManageACL () if ( aAclForm == nil ) then aAclData["group_objects"] = {} aAclData["group_acls"] = {} aAclData["acl_rights"] = {} local x, y = guiGetScreenSize() aAclForm = guiCreateWindow ( x / 2 - 230, y / 2 - 250, 460, 500, "ACL", false ) aACLList = guiCreateGridList ( 0.03, 0.05, 0.50, 0.90, true, aAclForm ) guiGridListSetSortingEnabled ( aACLList, false ) guiGridListAddColumn( aACLList, "", 0.10 ) guiGridListAddColumn( aACLList, "", 0.85 ) aACLCreateGroup = guiCreateButton ( 0.55, 0.05, 0.40, 0.04, "Create group", true, aAclForm , "Creategroup" ) aACLCreateACL = guiCreateButton ( 0.55, 0.10, 0.40, 0.04, "Create ACL", true, aAclForm , "CreateACL" ) aACLLabel = guiCreateLabel ( 0.55, 0.19, 0.40, 0.04, "", true, aAclForm ) aACLSeparator = guiCreateStaticImage ( 0.55, 0.235, 0.40, 0.0025, "client\\images\\dot.png", true, aAclForm ) aACLDestroyGroup = guiCreateButton ( 0.55, 0.25, 0.40, 0.04, "Destroy group", true, aAclForm , "Destroy group" ) aACLDestroyACL = guiCreateButton ( 0.55, 0.25, 0.40, 0.04, "Destroy ACL", true, aAclForm , "Destroy ACL" ) aACLAddObject = guiCreateButton ( 0.55, 0.30, 0.40, 0.04, "Add Object", true, aAclForm , "AddObject" ) aACLRemoveObject = guiCreateButton ( 0.55, 0.35, 0.40, 0.04, "Remove Object", true, aAclForm, "RemoveObject" ) aACLAddACL = guiCreateButton ( 0.55, 0.40, 0.40, 0.04, "Add ACL", true, aAclForm , "Add ACL" ) aACLRemoveACL = guiCreateButton ( 0.55, 0.45, 0.40, 0.04, "Remove ACL", true, aAclForm , "Remove ACL" ) aACLActionLabel = guiCreateLabel ( 0.55, 0.31, 0.40, 0.04, "", true, aAclForm ) aACLDropCurrent = guiCreateEdit ( 0.55, 0.35, 0.40, 0.04, "", true, aAclForm ) guiSetEnabled ( aACLDropCurrent, false ) aACLDropDown = guiCreateStaticImage ( 0.91, 0.35, 0.04, 0.04, "client\\images\\dropdown.png", true, aAclForm ) aACLDropList = guiCreateGridList ( 0.55, 0.35, 0.40, 0.30, true, aAclForm ) guiGridListAddColumn( aACLDropList, "", 0.85 ) guiSetVisible ( aACLDropList, false ) aACLOk = guiCreateButton ( 0.55, 0.40, 0.19, 0.04, "Ok", true, aAclForm ) aACLCancel = guiCreateButton ( 0.76, 0.40, 0.19, 0.04, "Cancel", true, aAclForm ) aACLAddRight = guiCreateButton ( 0.55, 0.30, 0.40, 0.04, "Add Right", true, aAclForm , "Add Right" ) aACLExit = guiCreateButton ( 0.75, 0.90, 0.27, 0.04, "Close", true, aAclForm ) aclDisplayOptions ( "", "" ) addEvent ( "aAdminACL", true ) addEventHandler ( "aAdminACL", getLocalPlayer(), aAdminACL ) addEventHandler ( "onClientGUIClick", aAclForm, aClientACLClick ) addEventHandler ( "onClientGUIDoubleClick", aAclForm, aClientACLDoubleClick ) --Register With Admin Form aRegister ( "ACLManage", aAclForm, aManageACL, aACLClose ) triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclgroups" ) end guiSetVisible ( aAclForm, true ) guiBringToFront ( aAclForm ) end function aACLClose ( destroy ) if ( ( destroy ) or ( aPerformanceACL and guiCheckBoxGetSelected ( aPerformanceACL ) ) ) then if ( aAclForm ) then removeEventHandler ( "onClientGUIClick", aAclForm, aClientACLClick ) removeEventHandler ( "onClientGUIDoubleClick", aAclForm, aClientACLDoubleClick ) destroyElement ( aAclForm ) aAclForm = nil end else guiSetVisible ( aAclForm, false ) end end function aAdminACL ( type, acltable ) guiGridListClear ( aACLList ) if ( type == "aclgroups" ) then aAclData["viewing"] = nil aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) aAclData["groups"] = acltable["groups"] for id, name in ipairs ( acltable["groups"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end local row = guiGridListAddRow ( aACLList ) aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) aAclData["acl"] = acltable["acl"] for id, name in ipairs ( acltable["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end aclDisplayOptions ( "", "" ) elseif ( type == "aclobjects" ) then aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) for i, group in ipairs ( aAclData["groups"] ) do local group_row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, group_row, 2, group, false, false ) if ( group == acltable["name"] ) then aclDisplayOptions ( "Group", acltable["name"] ) aAclData["objects_row"] = guiGridListAddRow ( aACLList ) aAclData["group_objects"][group] = acltable["objects"] guiGridListSetItemText ( aACLList, aAclData["objects_row"], 2, " objects:", true, false ) for j, object in ipairs ( acltable["objects"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..object, false, false ) end aAclData["acls_row"] = guiGridListAddRow ( aACLList ) aAclData["group_acls"][group] = acltable["acl"] guiGridListSetItemText ( aACLList, aAclData["acls_row"], 2, " acl:", true, false ) for j, acl in ipairs ( acltable["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..acl, false, false ) end guiGridListSetItemText ( aACLList, group_row, 1, "-", false, false ) else guiGridListSetItemText ( aACLList, group_row, 1, "+", false, false ) end end aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) for id, name in ipairs ( aAclData["acl"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end elseif ( type == "aclrights" ) then aAclData["viewing"] = "rights" aAclData["group_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["group_row"], 2, "Groups:", true, false ) for id, name in ipairs ( aAclData["groups"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 1, "+", false, false ) guiGridListSetItemText ( aACLList, row, 2, name, false, false ) end aAclData["acl_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["acl_row"], 2, "ACL:", true, false ) for i, acl in ipairs ( aAclData["acl"] ) do local acl_row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, acl_row, 2, acl, false, false ) if ( acl == acltable["name"] ) then aAclData["acl_rights"][acl] = acltable["rights"] aclDisplayOptions ( "ACL", acltable["name"] ) aAclData["rights_row"] = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, aAclData["rights_row"], 2, " rights:", true, false ) for name, access in pairs ( acltable["rights"] ) do local row = guiGridListAddRow ( aACLList ) guiGridListSetItemText ( aACLList, row, 2, " "..name, false, false ) if guiGridListSetItemColor then guiGridListSetItemColor ( aACLList, row, 2, access and 0 or 255, access and 255 or 0, 0, 255) end end guiGridListSetItemText ( aACLList, acl_row, 1, "-", false, false ) else guiGridListSetItemText ( aACLList, acl_row, 1, "+", false, false ) end end end end function aClientACLDoubleClick ( button ) if ( button == "left" ) then if ( source == aACLList ) then local row = guiGridListGetSelectedItem ( aACLList ) if ( row ~= -1 ) then local clicked = guiGridListGetItemText ( aACLList, row, 2 ) local state = guiGridListGetItemText ( aACLList, row, 1 ) if ( row > aAclData["acl_row"] ) then for i, acl in ipairs ( aAclData["acl"] ) do if ( acl == clicked ) then if ( state == "-" ) then triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclgroups" ) else triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclrights", clicked ) end return end end else for i, group in ipairs ( aAclData["groups"] ) do if ( group == clicked ) then if ( state == "-" ) then triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclgroups" ) else triggerServerEvent ( "aAdmin", getLocalPlayer(), "sync", "aclobjects", clicked ) end return end end end end elseif ( source == aACLDropList ) then local row = guiGridListGetSelectedItem ( aACLDropList ) if ( row ~= -1 ) then local clicked = guiGridListGetItemText ( aACLDropList, row, 1 ) guiSetText ( aACLDropCurrent, clicked ) guiSetVisible ( aACLDropList, false ) end end end end function aClientACLClick ( button ) if ( source ~= aACLDropList ) then guiSetVisible ( aACLDropList, false ) end if ( button == "left" ) then if ( source == aACLExit ) then aACLClose ( false ) elseif ( source == aACLCreateGroup ) then aInputBox ( "Create ACL Group", "Enter group name:", "", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"aclcreate\", \"group\", $value )" ) elseif ( source == aACLCreateACL ) then aInputBox ( "Create ACL", "Enter acl name:", "", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"aclcreate\", \"acl\", $value )" ) elseif ( source == aACLAddObject ) then aInputBox ( "Create ACL Group", "Enter object name:", "", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"acladd\", \"object\", \""..aAclData["current"].."\", $value )" ) elseif ( source == aACLAddRight ) then aInputBox ( "Create ACL", "Enter right name:", "", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"acladd\", \"right\", \""..aAclData["current"].."\", $value )" ) elseif ( source == aACLDestroyGroup ) then aMessageBox ( "warning", "Are you sure to destroy "..aAclData["current"].." group?", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"acldestroy\", \"group\", \""..aAclData["current"].."\" )" ) elseif ( source == aACLDestroyACL ) then aMessageBox ( "warning", "Are you sure to destroy "..aAclData["current"].." ACL?", "triggerServerEvent ( \"aAdmin\", getLocalPlayer(), \"acldestroy\", \"acl\", \""..aAclData["current"].."\" )" ) elseif ( ( source == aACLRemoveObject ) or ( source == aACLAddACL ) or ( source == aACLRemoveACL ) ) then guiSetVisible ( aACLAddObject, false ) guiSetVisible ( aACLRemoveObject, false ) guiSetVisible ( aACLAddACL, false ) guiSetVisible ( aACLRemoveACL, false ) guiSetVisible ( aACLDropCurrent, true ) guiSetVisible ( aACLDropDown, true ) guiSetVisible ( aACLOk, true ) guiSetVisible ( aACLCancel, true ) guiSetVisible ( aACLActionLabel, true ) guiGridListClear ( aACLDropList ) local table = {} guiSetText ( aACLActionLabel, guiGetText ( source )..":" ) if ( source == aACLRemoveObject ) then table = aAclData["group_objects"][aAclData["current"]] elseif ( source == aACLAddACL ) then table = aAclData["acl"] elseif ( source == aACLRemoveACL ) then table = aAclData["group_acls"][aAclData["current"]] end if ( #table >= 1 ) then guiSetText ( aACLDropCurrent, table[1] ) end for id, object in ipairs ( table ) do guiGridListSetItemText ( aACLDropList, guiGridListAddRow ( aACLDropList ), 1, object, false, false ) end elseif ( source == aACLDropDown ) then guiSetVisible ( aACLDropList, true ) guiBringToFront ( aACLDropList ) elseif ( source == aACLCancel ) then aclDisplayOptions ( aAclData["viewing"], aAclData["current"] ) elseif ( source == aACLOk ) then local action = guiGetText ( aACLActionLabel ) if ( action == "Remove Object:" ) then triggerServerEvent ( "aAdmin", getLocalPlayer(), "aclremove", "object", aAclData["current"], guiGetText ( aACLDropCurrent ) ) elseif ( action == "Add ACL:" ) then triggerServerEvent ( "aAdmin", getLocalPlayer(), "acladd", "acl", aAclData["current"], guiGetText ( aACLDropCurrent ) ) elseif ( action == "Remove ACL:" ) then triggerServerEvent ( "aAdmin", getLocalPlayer(), "aclremove", "acl", aAclData["current"], guiGetText ( aACLDropCurrent ) ) end end end end function aclDisplayOptions ( state, name ) guiSetVisible ( aACLSeparator, false ) aAclData["viewing"] = state if ( state ~= "" ) then aAclData["current"] = name guiSetVisible ( aACLSeparator, true ) guiSetText ( aACLLabel, state..": "..name ) else aAclData["current"] = "" guiSetText ( aACLLabel, "" ) end guiSetVisible ( aACLDestroyGroup, false ) guiSetVisible ( aACLDestroyACL, false ) guiSetVisible ( aACLAddObject, false ) guiSetVisible ( aACLRemoveObject, false ) guiSetVisible ( aACLAddACL, false ) guiSetVisible ( aACLRemoveACL, false ) guiSetVisible ( aACLAddRight, false ) guiSetVisible ( aACLDropCurrent, false ) guiSetVisible ( aACLDropList, false ) guiSetVisible ( aACLDropDown, false ) guiSetVisible ( aACLCancel, false ) guiSetVisible ( aACLOk, false ) guiSetVisible ( aACLActionLabel, false ) if ( state == "ACL" ) then guiSetVisible ( aACLDestroyACL, true ) guiSetVisible ( aACLAddRight, true ) elseif ( state == "Group" ) then guiSetVisible ( aACLDestroyGroup, true ) guiSetVisible ( aACLAddObject, true ) guiSetVisible ( aACLAddACL, true ) guiSetVisible ( aACLRemoveObject, true ) guiSetVisible ( aACLRemoveACL, true ) end end
  9. تسلم ي بطل على الشرح انا سويت كل خطوة واعطيت الرابط لصاحب الاستضافة وحطاه في addons بس عندي مشكلة هنا بعد كملت كل شي اجي اشغل السيرفر وشوف إدارة الملفات ذا بعد ما سويت كل الخطوات
  10. السلام عليكم ورحمة الله كيفكم ان شاء الله طيبين 1.5.2 عندي سيرفر على إستضافة إصدار السيرفر وعايز أحدثو إلى 1.5.4 أحتاج رابط التحديث لو حد معه رابط تحديث يرسلو لي
  11. وش هو الزر الي يفتح اللوحة ؟
  12. تسلم والله انك كفوووووووووووووووووووووو ظبط مية مية تاني كان في غلط اخير بس صلحتو انا ~~سطر 87 Close = guiCreateButton(552, 478, 59, 27, "» ✘ «", false, qwanin) ~~سطر 89 GUIEditor.label[42] = guiCreateLabel(136, 350, 332, 19, "* محاولة التهكير أو تخريب الأسل = باند مؤبد + سحب الحساب *", false, qmanagermanagers) نتعلم منك يا وحشش
  13. بدلت الأسطر وكذا صارت اللوحة
  14. حذفته ... ولما شغلتها شوف كيف ظهرت
  15. شكرا صورت لك الي طلع في الدي بق
  16. هات كود الدي بق عشان نسيته والله
  17. guiSetVisible(kwanin], false) يب في غلط في القوس ومسحت السطر كلو بس برضو ما اشتغل
  18. <meta> <script src="client.lua" type="client"/> </meta> هذي هي
  19. اوه انا قلت اف 4 قصدي اف 5 لاكن برضو في غلط في الكودات
  20. السلام عليكم ورحمة الله وبركاته صنعت لوحة قوانين تفتح من اف4 بس اللوحة ماتفتح وقاعد ساعتين أحاول اشغلها بس ما عرفت وين الغلط في الكودات أرجو مساعدتي في تصحيح الأكواد local Key = "F5" --هنا زر الفتح GUIEditor = { tabpanel = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() kwanin = guiCreateWindow((screenW - 625) / 2, (screenH - 515) / 2, 625, 515, "❖〣┘ لوحـة القوانيـن ┌〣❖", false) guiWindowSetSizable(kwanin, false) guiSetAlpha(kwanin, 1.00) guiSetVisible(kwanin], false) TAP = guiCreateTabPanel(10, 20, 605, 457, false, kwanin) qzwar = guiCreateTab("❖〣┘ قوانيـن الـزوار ┌〣❖", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(181, 10, 233, 20, "❖┘ مرحبـا بـزوار مدينـة الإنتـاج الإعـلامي ┌❖", false, qzwar) guiLabelSetColor(GUIEditor.label[1], 0, 255, 209) GUIEditor.label[2] = guiCreateLabel(243, 40, 352, 19, "*┘ يرجـى إتبـاع القوانيـن التالية, وعدم مخالفتهـا لتجنـب المشاكل ┌*", false, qzwar) guiLabelSetColor(GUIEditor.label[2], 255, 239, 0) GUIEditor.label[3] = guiCreateLabel(358, 78, 352, 19, "1: التخريب = سلاب 100 والتكرار = كيك.", false, qzwar) GUIEditor.label[4] = guiCreateLabel(260, 97, 352, 19, "2: الشتم والسب = ميوت 5 دقائق والتكرار = ميوت 10 دقائق.", false, qzwar) GUIEditor.label[5] = guiCreateLabel(420, 116, 352, 19, "3: النشر = ميوت 16 ساعة .", false, qzwar) GUIEditor.label[6] = guiCreateLabel(410, 135, 352, 19, "4: طلب الرتبة = ميوت 5 دقائق.", false, qzwar) GUIEditor.label[7] = guiCreateLabel(420, 154, 352, 19, "5: النشر والخروج = باند مؤبد.", false, qzwar) GUIEditor.label[8] = guiCreateLabel(274, 174, 352, 19, "6: إستخدام الهاكات أو الثقرات = باند 7 يوم وقد يصل لمؤبد.", false, qzwar) GUIEditor.label[9] = guiCreateLabel(348, 193, 352, 19, "7: مسح الشات بدون سبب = مخالف 1 يوم.", false, qzwar) GUIEditor.label[10] = guiCreateLabel(309, 212, 352, 19, "8: تبادل الحسابات = باند 3 يوم + سحب الحسابات.", false, qzwar) GUIEditor.label[11] = guiCreateLabel(5, 341, 605, 15, "═══════════════════════════════════════════════════════════════════════════════════════════════════", false, qzwar) guiLabelSetColor(GUIEditor.label[11], 254, 0, 245) GUIEditor.label[12] = guiCreateLabel(143, 366, 352, 19, "» يمنع إعطاء حسابك لأي لاعب حتى لو كان صاحب السيرفر «", false, qzwar) guiLabelSetColor(GUIEditor.label[12], 254, 0, 0) qadmins = guiCreateTab("❖〣┘ قوانيـن الأدمنيـة ┌〣❖", GUIEditor.tabpanel[1]) GUIEditor.label[13] = guiCreateLabel(178, 10, 248, 20, "❖┘ مرحبـا بـأدمنية مدينـة الإنتـاج الإعـلامي ┌❖", false, qadmins) guiLabelSetColor(GUIEditor.label[13], 0, 255, 209) GUIEditor.label[14] = guiCreateLabel(243, 40, 338, 16, "*┘ يرجـى إتبـاع القوانيـن التالية, وعدم مخالفتهـا لتجنـب المشاكل ┌*", false, qadmins) guiLabelSetColor(GUIEditor.label[14], 255, 215, 0) GUIEditor.label[15] = guiCreateLabel(404, 76, 338, 16, "1: طلب الرتبة = ميوت 5 دقائق.", false, qadmins) GUIEditor.label[16] = guiCreateLabel(313, 92, 338, 16, "2: اللعب أو التخريب بلوحة الأدمن = مخالف 1 يوم.", false, qadmins) GUIEditor.label[17] = guiCreateLabel(355, 108, 338, 16, "3: التخريب = سلاب 100 والتكرار = كيك.", false, qadmins) GUIEditor.label[18] = guiCreateLabel(249, 124, 338, 16, "4: الشتم أو السب = ميوت 5 دقائق والتكرار = ميوت 10 دقائق.", false, qadmins GUIEditor.label[19] = guiCreateLabel(420, 140, 338, 16, "5: النشر = ميوت 16 ساعة.", false, qadmins) GUIEditor.label[20] = guiCreateLabel(377, 156, 338, 16, "6: تقليد النك = تحذير والتكرار = كيك.", false, qadmins) GUIEditor.label[21] = guiCreateLabel(357, 172, 338, 16, "7: فك الميوت لأي سبب = مخالف 1 يوم.", false, qadmins) GUIEditor.label[22] = guiCreateLabel(305, 188, 338, 16, "8: صك اللاعبين بدون سبب أو مزح = مخالف 1 يوم.", false, qadmins) GUIEditor.label[23] = guiCreateLabel(89, 204, 480, 17, "9: يرجى تنظيم أماكن تواجد الزوار + المساعدة المستمرة للحصول على رتب أعلى في السيرفر.", false, qadmins) GUIEditor.label[24] = guiCreateLabel(335, 221, 480, 17, "10: مخالفة القوانين أعلاه يؤدي لمخالف 1 يوم.", false, qadmins) GUIEditor.label[25] = guiCreateLabel(4, 341, 605, 17, "═══════════════════════════════════════════════════════════════════════════════════════════════════", false, qadmins) guiLabelSetColor(GUIEditor.label[25], 254, 0, 245) GUIEditor.label[26] = guiCreateLabel(141, 368, 329, 18, "» يمنع إعطاء حسابك لأي لاعب حتى لو كان صاحب السيرفر «", false, qadmins) guiLabelSetColor(GUIEditor.label[26], 254, 0, 0) qmanagermanagers = guiCreateTab("❖〣┘ قوانيـن المانجـر + المانجرس ┌〣❖", GUIEditor.tabpanel[1]) GUIEditor.label[27] = guiCreateLabel(167, 10, 266, 19, "❖┘ مرحبـا بمسؤولين مدينة الإنتـاج الإعلامـي ┌❖", false, qmanagermanagers) guiLabelSetColor(GUIEditor.label[27], 0, 255, 209) GUIEditor.label[28] = guiCreateLabel(241, 39, 340, 18, "*┘ يرجـى إتبـاع القوانيـن التالية, وعدم مخالفتهـا لتجنـب المشاكل ┌*", false, qmanagermanagers) guiLabelSetColor(GUIEditor.label[28], 255, 215, 0) GUIEditor.label[29] = guiCreateLabel(251, 67, 100, 17, "» قوانيـن المانجـر «", false, qmanagermanagers) guiLabelSetColor(GUIEditor.label[29], 23, 254, 0) GUIEditor.label[30] = guiCreateLabel(252, 225, 100, 17, "» قوانيـن المانجـرس «", false, qmanagermanagers) guiLabelSetColor(GUIEditor.label[30], 23, 254, 0) GUIEditor.label[31] = guiCreateLabel(225, 90, 340, 18, "1: يجب التواجد في السيرفر يوميا من 4 إلى 6 ساعات في اليوم.", false, qmanagermanagers) GUIEditor.label[32] = guiCreateLabel(347, 108, 340, 18, "2: يرجى وضع شعار المانجر وهو [SM] .", false, qmanagermanagers) GUIEditor.label[33] = guiCreateLabel(211, 126, 340, 18, "3: يرجى مساعدة اللاعبين والزوار وحل المشاكل + مراقبة الشات.", false, qmanagermanagers) GUIEditor.label[34] = guiCreateLabel(289, 144, 340, 18, "4: يمنع طلب المانجرس إلا بعد إكتمال مدة المانجر.", false, qmanagermanagers) GUIEditor.label[35] = guiCreateLabel(14, 172, 576, 18, "* خلق المشاكل بين اللاعبين أو عدم المساعدة ومراقبة الشات أو عدم التواجد بالصورة المطلوبة = سحب المانجر *", false, qmanagermanagers) guiLabelSetColor(GUIEditor.label[35], 254, 0, 0) GUIEditor.label[36] = guiCreateLabel(4, 200, 601, 15, "═══════════════════════════════════════════════════════════════════════════════════════════════════", false, qmanagermanagers) guiLabelSetColor(GUIEditor.label[36], 254, 0, 245) GUIEditor.label[37] = guiCreateLabel(222, 247, 340, 18, "1: يجب التواجد يوميا في السيرفر وحل المشاكل بين اللاعبين.", false, qmanagermanagers) GUIEditor.label[38] = guiCreateLabel(325, 265, 340, 18, "2: يرجى وضع شعار المانجرس وهو [GM].", false, qmanagermanagers) GUIEditor.label[39] = guiCreateLabel(107, 283, 429, 19, "3: يرجى التحقق من المخالفات التي قمت بصكها على أن لا تتعدى المدة المحددة لها.", false, qmanagermanagers) GUIEditor.label[40] = guiCreateLabel(267, 302, 429, 19, "4: يمنع ترقية أي لاعب رتبة أعلى من ساعات تواجده.", false, qmanagermanagers) GUIEditor.label[41] = guiCreateLabel(330, 321, 429, 19, "5: يمنع ترقية نفسك رتبة أعلى من رتبتك.", false, qmanagermanagers) GUIEditor.label[42] = guiCreateLabel(136, 350, 332, 19, "* محاولة التهكير أو تخريب الأسل = باند مؤبد + سحب الحساب *", false, qmanagermanagerss) guiLabelSetColor(GUIEditor.label[42], 254, 0, 0) GUIEditor.label[43] = guiCreateLabel(4, 369, 601, 15, "═══════════════════════════════════════════════════════════════════════════════════════════════════", false, qmanagermanagers) guiLabelSetColor(GUIEditor.label[43], 254, 0, 245) GUIEditor.label[44] = guiCreateLabel(164, 394, 284, 18, "» فترة الترقية من رتبة المانجر إلى المانجرس = 12 يوم «", false, qmanagermanagers) guiLabelSetColor(GUIEditor.label[44], 254, 0, 0) Close = guiCreateButton(552, 478, 59, 27, "» ✘ «", false, qwanin) guiSetProperty(Close, "NormalTextColour", "FFFE0000") GUIEditor.label[45] = guiCreateLabel(10, 487, 89, 15, "By: MƬA ƑἷLMЄَƳ", false, qwanin) guiLabelSetColor(GUIEditor.label[45], 0, 35, 254) end ) bindKey(Key,"down", --عند الضغط على الزر المحدد function() guiSetVisible(kwanin,not guiGetVisible(kwanin))--اظهار اللوحة showCursor(guiGetVisible(kwanin)) --اظهار الماوس end) addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة if (source ==Close) then --يتحقق من اسم الزر guiSetVisible(kwanin,false) -- اغلاق اللوحة showCursor(false) --اخفاء الماوس end end) ____| شكرا |____
×
×
  • Create New...