Jump to content

ساعدوني بي هاي المود


Recommended Posts

شباب ابي منكم مساعده معي مود يفتح من اف 12

هو عبارة عن قائمة مودات لما تدوس علي زر يفتح مود اخر المهم هاي اكواده

FontWnd = guiCreateFont( "Font.ttf", 19 ) 
  
  
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
 local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "Back.png", relative2 ) 
 local mainBackgroundLabel = guiCreateLabel ( 91, 29, 611, 544, titleBarText2, false, mainBackground ) 
 guiSetFont ( mainBackgroundLabel, newFont2 ) 
 guiSetEnabled ( mainBackgroundLabel, false ) 
 return mainBackground 
end 
  
GUIEditor = { 
    tab = {}, 
    button = {}, 
    window = {}, 
    checkbox = {}, 
    label = {}, 
    tabpanel = {}, 
    edit = {}, 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(202, 91, 394, 414, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
guiSetVisible(GUIEditor.window[1],false) 
     
        GUIEditor.button[1] = guiCreateButton(9, 66, 375, 41, "=[ لــوحة ألترقــيآت ]=", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEA05F9") 
        GUIEditor.button[2] = guiCreateButton(9, 112, 175, 45, "لوحة قوانين ", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[3] = guiCreateButton(212, 113, 172, 45, "لوحة اليزر", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[4] = guiCreateButton(214, 165, 170, 45, "لوحة حفظ ملابس cj", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[5] = guiCreateButton(9, 161, 175, 45, "لوحة تحكم لاعب ", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[6] = guiCreateButton(216, 219, 168, 46, "لوحة تحويل فلوس تحت الانشاء", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[7] = guiCreateButton(9, 215, 178, 47, "لوحة نسخ سيريالك", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[8] = guiCreateButton(9, 270, 180, 47, "لوحة شكاوي والاقتراحات تحت الانشاء", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[9] = guiCreateButton(211, 272, 172, 45, "لوحة شيلات تحت الانشاء", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFDC21D1") 
        GUIEditor.button[10] = guiCreateButton(9, 325, 181, 44, "لوحة حفظ المكان تحت الانشاء", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFDC21D1") 
        GUIEditor.button[11] = guiCreateButton(365, 376, 19, 30, "✖", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFFF0000") 
        GUIEditor.button[12] = guiCreateButton(212, 325, 172, 45, "لوحة تحت صيانه", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[12], "NormalTextColour", "FFDC21D1") 
        GUIEditor.label[1] = guiCreateLabel(9, 381, 353, 23, "|=> Welcome To Server M7 Mo7TrFean <=|", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 100, 208, 46) 
        GUIEditor.label[2] = guiCreateLabel(2, 0, 390, 63, "~][ Server Panel ][~", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], FontWnd ) 
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[2], "center")       
    end 
) 
  
  
bindKey("F12", "down",  
function () 
      guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]))  
      showCursor(guiGetVisible(GUIEditor.window[1])) 
end 
) 
  
setTimer(function() 
guiLabelSetColor(GUIEditor.label[2], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.label[1], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.button[4], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.button[7], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.button[3], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.button[2], math.random(0,255), math.random(0,255), math.random(0,255)) 
end, 800, 0) 
  
  
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[11] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق  
guiSetVisible(GUIEditor.window[1],false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط 
end -- نهاية  
end -- .. 
) -- اقفال الحدث 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[2] then 
    showCursor ( false ) 
    executeCommandHandler ( "QWANEN" ) 
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[3] then 
    showCursor ( false ) 
    executeCommandHandler ( "LASER" ) 
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[1] then 
    showCursor ( false ) 
    executeCommandHandler ( "رتب" ) 
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[4] then 
    showCursor ( false ) 
    executeCommandHandler ( "cj" )  
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[7] then 
    showCursor ( false ) 
    executeCommandHandler ( "سيريال" ) 
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[5] then 
    showCursor ( false ) 
    executeCommandHandler ( "لوحة تحكم" )  
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 

وفي لوحة ابي احطها مكان لوحة اخري

اكواد اللوحة الي ابي احطها هي

---------------------- 
-- Setting 
---------------------- 
local Key="f10" 
  
local Admin = { 
{"ملك الدرفت","KingDrift","20"}, 
{"كبار الشخصيات","V.I.P","30"}, 
{"بوليس","Police","45"}, 
{"مشرف","Moderator","60"}, 
{"مراقب","SuperModerator","90"}, 
{"ادمن","Admin","130"}, 
{"هيد ادمن","Head.Admin","160"}, 
{"بيج ادمن","Big.Admin","200"}, 
{"كنق ادمن","King.Admin","260"}, 
{"بروفيشينال ادمن","Professional.Admin","300"}, 
{"قائد الادمن","Leader.Admin","350"}, 
{"فيب ادمن","V.I.P.Admin","400"}, 
{"برو ادمن","Pro.Admin","450"}, 
{"ادمن خاص","Special.Admin","500"}, 
{"برنس السيرفر","Prince.of.Server","550"}, 
{"ادمن السيرفر","Admin.Server","600"}, 
{"جينيرال ادمن","Admin.General","700"}, 
{"ادمن اوفيشال","Admin-Official","1000"}, 
{"ادمن محترفين","Admin-Mo7TrFean","1200"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
  
  
GiveAdmin = { 
    Window = {}, 
    gridlist = {}, 
    button = {}, 
    label = {}, 
} 
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false); 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false); 
end 
  
GiveAdmin.Window[1] = guiCreateStaticImage(445, 532, 400, 339, "Back.png", false); 
centerWindow(GiveAdmin.Window[1]); 
guiSetVisible(GiveAdmin.Window[1],false); 
guiSetAlpha(GiveAdmin.Window[1], 1.00); 
GiveAdmin.label[1] = guiCreateLabel(204, 33, 232, 53, "#[ لوحة الترقيات ][ By : M7]#~", false, GiveAdmin.Window[1]) 
guiSetFont(GiveAdmin.label[1], "default-bold-small") 
 guiLabelSetColor(GiveAdmin.label[1], 255, 0, 0) 
GiveAdmin.gridlist[1] = guiCreateGridList(9,51,381,242,false, GiveAdmin.Window[1]); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "الرتب", 0.6); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "الساعات", 0.2); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "", 0.0) 
guiGridListAddColumn(GiveAdmin.gridlist[1], "", 0.0); 
GiveAdmin.label[3] = guiCreateLabel(10, 303, 267, 26, "", false, GiveAdmin.Window[1]); 
guiSetFont(GiveAdmin.label[2], "default-bold-small"); 
guiLabelSetColor(GiveAdmin.label[2], 41, 255, 0); 
GiveAdmin.button[1] = guiCreateButton(149, 297, 107, 27,"شراء الرتبة", false, GiveAdmin.Window[1]); 
guiSetFont(GiveAdmin.button[1], "default-bold-small"); 
guiSetProperty(GiveAdmin.button[1], "NormalTextColour", "FFFF0000"); 
  
addCommandHandler('رتب',function() 
        guiSetVisible(GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GiveAdmin.gridlist[1]); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,1,v[2],false,false); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,6,v[1],false,false); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,3,0,0,0); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,2,255,0,0); 
guiSetFont(GiveAdmin.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GiveAdmin.gridlist[1] )  
local Group = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,6 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name); 
  else 
  outputChatBox("* الرجاء أختيار رتبة",255,0,0,true); 
  end 
end 
addEventHandler("onClientGUIClick",GiveAdmin.button[1],xMainFunctions_,false); 
  
xBindFunction_ = function () 
    guiSetVisible(GiveAdmin.Window[1],not guiGetVisible(GiveAdmin.Window[1])); 
    showCursor(guiGetVisible(GiveAdmin.Window[1])); 
end 
bindKey(Key,"down",xBindFunction_); 
  
local againStartMove = 100 
local endMove = 400 
addEventHandler("onClientRender",root,function() 
local x,y = guiGetPosition(GiveAdmin.label[1],false) 
guiSetPosition(GiveAdmin.label[1],x + 2,y,false) 
if ( x >= endMove ) then 
guiSetPosition(GiveAdmin.label[1],againStartMove,y,false) 
end 
end) 
  
  
Font = guiCreateFont("Font.ttf",14) 
guiSetFont(GiveAdmin.button[1],Font) 

اتمني تساعدوني وشكرؤا

Link to comment
---------------------- 
-- Setting 
---------------------- 
local Key="f12" 
  
local Admin = { 
{"ملك الدرفت","KingDrift","20"}, 
{"كبار الشخصيات","V.I.P","30"}, 
{"بوليس","Police","45"}, 
{"مشرف","Moderator","60"}, 
{"مراقب","SuperModerator","90"}, 
{"ادمن","Admin","130"}, 
{"هيد ادمن","Head.Admin","160"}, 
{"بيج ادمن","Big.Admin","200"}, 
{"كنق ادمن","King.Admin","260"}, 
{"بروفيشينال ادمن","Professional.Admin","300"}, 
{"قائد الادمن","Leader.Admin","350"}, 
{"فيب ادمن","V.I.P.Admin","400"}, 
{"برو ادمن","Pro.Admin","450"}, 
{"ادمن خاص","Special.Admin","500"}, 
{"برنس السيرفر","Prince.of.Server","550"}, 
{"ادمن السيرفر","Admin.Server","600"}, 
{"جينيرال ادمن","Admin.General","700"}, 
{"ادمن اوفيشال","Admin-Official","1000"}, 
{"ادمن محترفين","Admin-Mo7TrFean","1200"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
  
  
GiveAdmin = { 
    Window = {}, 
    gridlist = {}, 
    button = {}, 
    label = {}, 
} 
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false); 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false); 
end 
  
GiveAdmin.Window[1] = guiCreateStaticImage(445, 532, 400, 339, "Back.png", false); 
centerWindow(GiveAdmin.Window[1]); 
guiSetVisible(GiveAdmin.Window[1],false); 
guiSetAlpha(GiveAdmin.Window[1], 1.00); 
GiveAdmin.label[1] = guiCreateLabel(204, 33, 232, 53, "#[ لوحة الترقيات ][ By : M7]#~", false, GiveAdmin.Window[1]) 
guiSetFont(GiveAdmin.label[1], "default-bold-small") 
 guiLabelSetColor(GiveAdmin.label[1], 255, 0, 0) 
GiveAdmin.gridlist[1] = guiCreateGridList(9,51,381,242,false, GiveAdmin.Window[1]); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "الرتب", 0.6); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "الساعات", 0.2); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "", 0.0) 
guiGridListAddColumn(GiveAdmin.gridlist[1], "", 0.0); 
GiveAdmin.label[3] = guiCreateLabel(10, 303, 267, 26, "", false, GiveAdmin.Window[1]); 
guiSetFont(GiveAdmin.label[2], "default-bold-small"); 
guiLabelSetColor(GiveAdmin.label[2], 41, 255, 0); 
GiveAdmin.button[1] = guiCreateButton(149, 297, 107, 27,"شراء الرتبة", false, GiveAdmin.Window[1]); 
guiSetFont(GiveAdmin.button[1], "default-bold-small"); 
guiSetProperty(GiveAdmin.button[1], "NormalTextColour", "FFFF0000"); 
  
addCommandHandler('رتب',function() 
        guiSetVisible(GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GiveAdmin.gridlist[1]); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,1,v[2],false,false); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,6,v[1],false,false); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,3,0,0,0); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,2,255,0,0); 
guiSetFont(GiveAdmin.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GiveAdmin.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,6 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name); 
  else 
  outputChatBox("* الرجاء أختيار رتبة",255,0,0,true); 
  end 
end 
addEventHandler("onClientGUIClick",GiveAdmin.button[1],xMainFunctions_,false); 
  
xBindFunction_ = function () 
    guiSetVisible(GiveAdmin.Window[1],not guiGetVisible(GiveAdmin.Window[1])); 
    showCursor(guiGetVisible(GiveAdmin.Window[1])); 
end 
bindKey(Key,"down",xBindFunction_); 
  
local againStartMove = 100 
local endMove = 400 
addEventHandler("onClientRender",root,function() 
local x,y = guiGetPosition(GiveAdmin.label[1],false) 
guiSetPosition(GiveAdmin.label[1],x + 2,y,false) 
if ( x >= endMove ) then 
guiSetPosition(GiveAdmin.label[1],againStartMove,y,false) 
end 
end) 
  
  
Font = guiCreateFont("Font.ttf",14) 
guiSetFont(GiveAdmin.button[1],Font) 

Link to comment
شباب ابي منكم مساعده معي مود يفتح من اف 12

هو عبارة عن قائمة مودات لما تدوس علي زر يفتح مود اخر المهم هاي اكواده

FontWnd = guiCreateFont( "Font.ttf", 19 ) 
  
  
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
 local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "Back.png", relative2 ) 
 local mainBackgroundLabel = guiCreateLabel ( 91, 29, 611, 544, titleBarText2, false, mainBackground ) 
 guiSetFont ( mainBackgroundLabel, newFont2 ) 
 guiSetEnabled ( mainBackgroundLabel, false ) 
 return mainBackground 
end 
  
GUIEditor = { 
    tab = {}, 
    button = {}, 
    window = {}, 
    checkbox = {}, 
    label = {}, 
    tabpanel = {}, 
    edit = {}, 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(202, 91, 394, 414, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
guiSetVisible(GUIEditor.window[1],false) 
     
        GUIEditor.button[1] = guiCreateButton(9, 66, 375, 41, "=[ لــوحة ألترقــيآت ]=", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEA05F9") 
        GUIEditor.button[2] = guiCreateButton(9, 112, 175, 45, "لوحة قوانين ", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[3] = guiCreateButton(212, 113, 172, 45, "لوحة اليزر", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[4] = guiCreateButton(214, 165, 170, 45, "لوحة حفظ ملابس cj", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[5] = guiCreateButton(9, 161, 175, 45, "لوحة تحكم لاعب ", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[6] = guiCreateButton(216, 219, 168, 46, "لوحة تحويل فلوس تحت الانشاء", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[7] = guiCreateButton(9, 215, 178, 47, "لوحة نسخ سيريالك", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[8] = guiCreateButton(9, 270, 180, 47, "لوحة شكاوي والاقتراحات تحت الانشاء", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFE7E014") 
        GUIEditor.button[9] = guiCreateButton(211, 272, 172, 45, "لوحة شيلات تحت الانشاء", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFDC21D1") 
        GUIEditor.button[10] = guiCreateButton(9, 325, 181, 44, "لوحة حفظ المكان تحت الانشاء", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFDC21D1") 
        GUIEditor.button[11] = guiCreateButton(365, 376, 19, 30, "✖", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FFFF0000") 
        GUIEditor.button[12] = guiCreateButton(212, 325, 172, 45, "لوحة تحت صيانه", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[12], "NormalTextColour", "FFDC21D1") 
        GUIEditor.label[1] = guiCreateLabel(9, 381, 353, 23, "|=> Welcome To Server M7 Mo7TrFean <=|", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 100, 208, 46) 
        GUIEditor.label[2] = guiCreateLabel(2, 0, 390, 63, "~][ Server Panel ][~", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], FontWnd ) 
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[2], "center")       
    end 
) 
  
  
bindKey("F12", "down",  
function () 
      guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]))  
      showCursor(guiGetVisible(GUIEditor.window[1])) 
end 
) 
  
setTimer(function() 
guiLabelSetColor(GUIEditor.label[2], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.label[1], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.button[4], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.button[7], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.button[3], math.random(0,255), math.random(0,255), math.random(0,255)) 
guiLabelSetColor(GUIEditor.button[2], math.random(0,255), math.random(0,255), math.random(0,255)) 
end, 800, 0) 
  
  
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[11] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق  
guiSetVisible(GUIEditor.window[1],false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط 
end -- نهاية  
end -- .. 
) -- اقفال الحدث 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[2] then 
    showCursor ( false ) 
    executeCommandHandler ( "QWANEN" ) 
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[3] then 
    showCursor ( false ) 
    executeCommandHandler ( "LASER" ) 
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[1] then 
    showCursor ( false ) 
    executeCommandHandler ( "رتب" ) 
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[4] then 
    showCursor ( false ) 
    executeCommandHandler ( "cj" )  
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[7] then 
    showCursor ( false ) 
    executeCommandHandler ( "سيريال" ) 
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 
  
addEventHandler('onClientGUIClick',root, function() 
    if source == GUIEditor.button[5] then 
    showCursor ( false ) 
    executeCommandHandler ( "لوحة تحكم" )  
    guiSetVisible (GUIEditor.window[1] ,false) 
  end 
end ) 

وفي لوحة ابي احطها مكان لوحة اخري

اكواد اللوحة الي ابي احطها هي

---------------------- 
-- Setting 
---------------------- 
local Key="f10" 
  
local Admin = { 
{"ملك الدرفت","KingDrift","20"}, 
{"كبار الشخصيات","V.I.P","30"}, 
{"بوليس","Police","45"}, 
{"مشرف","Moderator","60"}, 
{"مراقب","SuperModerator","90"}, 
{"ادمن","Admin","130"}, 
{"هيد ادمن","Head.Admin","160"}, 
{"بيج ادمن","Big.Admin","200"}, 
{"كنق ادمن","King.Admin","260"}, 
{"بروفيشينال ادمن","Professional.Admin","300"}, 
{"قائد الادمن","Leader.Admin","350"}, 
{"فيب ادمن","V.I.P.Admin","400"}, 
{"برو ادمن","Pro.Admin","450"}, 
{"ادمن خاص","Special.Admin","500"}, 
{"برنس السيرفر","Prince.of.Server","550"}, 
{"ادمن السيرفر","Admin.Server","600"}, 
{"جينيرال ادمن","Admin.General","700"}, 
{"ادمن اوفيشال","Admin-Official","1000"}, 
{"ادمن محترفين","Admin-Mo7TrFean","1200"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
  
  
GiveAdmin = { 
    Window = {}, 
    gridlist = {}, 
    button = {}, 
    label = {}, 
} 
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false); 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false); 
end 
  
GiveAdmin.Window[1] = guiCreateStaticImage(445, 532, 400, 339, "Back.png", false); 
centerWindow(GiveAdmin.Window[1]); 
guiSetVisible(GiveAdmin.Window[1],false); 
guiSetAlpha(GiveAdmin.Window[1], 1.00); 
GiveAdmin.label[1] = guiCreateLabel(204, 33, 232, 53, "#[ لوحة الترقيات ][ By : M7]#~", false, GiveAdmin.Window[1]) 
guiSetFont(GiveAdmin.label[1], "default-bold-small") 
 guiLabelSetColor(GiveAdmin.label[1], 255, 0, 0) 
GiveAdmin.gridlist[1] = guiCreateGridList(9,51,381,242,false, GiveAdmin.Window[1]); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "الرتب", 0.6); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "الساعات", 0.2); 
guiGridListAddColumn(GiveAdmin.gridlist[1], "", 0.0) 
guiGridListAddColumn(GiveAdmin.gridlist[1], "", 0.0); 
GiveAdmin.label[3] = guiCreateLabel(10, 303, 267, 26, "", false, GiveAdmin.Window[1]); 
guiSetFont(GiveAdmin.label[2], "default-bold-small"); 
guiLabelSetColor(GiveAdmin.label[2], 41, 255, 0); 
GiveAdmin.button[1] = guiCreateButton(149, 297, 107, 27,"شراء الرتبة", false, GiveAdmin.Window[1]); 
guiSetFont(GiveAdmin.button[1], "default-bold-small"); 
guiSetProperty(GiveAdmin.button[1], "NormalTextColour", "FFFF0000"); 
  
addCommandHandler('رتب',function() 
        guiSetVisible(GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GiveAdmin.gridlist[1]); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,1,v[2],false,false); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GiveAdmin.gridlist[1],row,6,v[1],false,false); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,3,0,0,0); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GiveAdmin.gridlist[1],row,2,255,0,0); 
guiSetFont(GiveAdmin.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GiveAdmin.gridlist[1] )  
local Group = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,6 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name); 
  else 
  outputChatBox("* الرجاء أختيار رتبة",255,0,0,true); 
  end 
end 
addEventHandler("onClientGUIClick",GiveAdmin.button[1],xMainFunctions_,false); 
  
xBindFunction_ = function () 
    guiSetVisible(GiveAdmin.Window[1],not guiGetVisible(GiveAdmin.Window[1])); 
    showCursor(guiGetVisible(GiveAdmin.Window[1])); 
end 
bindKey(Key,"down",xBindFunction_); 
  
local againStartMove = 100 
local endMove = 400 
addEventHandler("onClientRender",root,function() 
local x,y = guiGetPosition(GiveAdmin.label[1],false) 
guiSetPosition(GiveAdmin.label[1],x + 2,y,false) 
if ( x >= endMove ) then 
guiSetPosition(GiveAdmin.label[1],againStartMove,y,false) 
end 
end) 
  
  
Font = guiCreateFont("Font.ttf",14) 
guiSetFont(GiveAdmin.button[1],Font) 

اتمني تساعدوني وشكرؤا

guiSetFont ( mainBackgroundLabel, newFont2 ) 

newFont2 من وين جايبه؟

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...