Jump to content

مساعده + مشكله


Recommended Posts

مشكله في مود الترقيات

م تظهر ب الجرد لست اسمي الرتب

اريد حل

كلنت

  
  
addCommandHandler('رتب',function() 
        guiSetVisible( GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"}, 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF32CBC6 tr:FF32CBC6 bl:FF32CBC6 br:FF32CBC6") 
  
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2],  
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,6,v[1],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,0,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )  
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.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 
  
  
  
  

سيرفر

  
  
xAddToGroupFunction_ = function ( Group,Price,Name ) 
    local account = getAccountName(getPlayerAccount(source)); 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox(" * يجب عليك التسجيل اولاَ",source,255,0,0,true); end 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("** لديك هذهـ الرتبة فعـلا  ! ",source,255,0,0,true); end 
    local sValue = getElementData( source,'PlayTime' ) 
    if not sValue then sValue = '0:0:0' end 
    local data = split(sValue,':') 
    local hour = tonumber( data[1] )   
    if hour == nil or not tonumber(hour) then hour = 0 end 
    if ( hour >= tonumber(Price))  then 
        aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); 
        outputChatBox("** تم اضافة الرتبة بنجاح | "..Name,source,0,255,0,true); 
    else 
        outputChatBox("**ليس لديك ساعات كافية",source,255,0,0,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 
  

Link to comment
مشكله في مود الترقيات

م تظهر ب الجرد لست اسمي الرتب

اريد حل

كلنت

  
  
addCommandHandler('رتب',function() 
        guiSetVisible( GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"}, 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF32CBC6 tr:FF32CBC6 bl:FF32CBC6 br:FF32CBC6") 
  
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2],  
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,6,v[1],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,0,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )  
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.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 
  
  
  
  

سيرفر

  
  
xAddToGroupFunction_ = function ( Group,Price,Name ) 
    local account = getAccountName(getPlayerAccount(source)); 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox(" * يجب عليك التسجيل اولاَ",source,255,0,0,true); end 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("** لديك هذهـ الرتبة فعـلا  ! ",source,255,0,0,true); end 
    local sValue = getElementData( source,'PlayTime' ) 
    if not sValue then sValue = '0:0:0' end 
    local data = split(sValue,':') 
    local hour = tonumber( data[1] )   
    if hour == nil or not tonumber(hour) then hour = 0 end 
    if ( hour >= tonumber(Price))  then 
        aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); 
        outputChatBox("** تم اضافة الرتبة بنجاح | "..Name,source,0,255,0,true); 
    else 
        outputChatBox("**ليس لديك ساعات كافية",source,255,0,0,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 
  

بدل الكلنت حقك

بلكلنت حقي

  
addCommandHandler('رتب',function() 
        guiSetVisible( GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"} 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF32CBC6 tr:FF32CBC6 bl:FF32CBC6 br:FF32CBC6") 
  
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2],  
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,6,v[1],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,0,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )  
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.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 
  
  
  
  

Link to comment
مشكله في مود الترقيات

م تظهر ب الجرد لست اسمي الرتب

اريد حل

كلنت

  
  
addCommandHandler('رتب',function() 
        guiSetVisible( GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"}, 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF32CBC6 tr:FF32CBC6 bl:FF32CBC6 br:FF32CBC6") 
  
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2],  
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,6,v[1],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,0,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )  
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.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 
  
  
  
  

سيرفر

  
  
xAddToGroupFunction_ = function ( Group,Price,Name ) 
    local account = getAccountName(getPlayerAccount(source)); 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox(" * يجب عليك التسجيل اولاَ",source,255,0,0,true); end 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("** لديك هذهـ الرتبة فعـلا  ! ",source,255,0,0,true); end 
    local sValue = getElementData( source,'PlayTime' ) 
    if not sValue then sValue = '0:0:0' end 
    local data = split(sValue,':') 
    local hour = tonumber( data[1] )   
    if hour == nil or not tonumber(hour) then hour = 0 end 
    if ( hour >= tonumber(Price))  then 
        aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); 
        outputChatBox("** تم اضافة الرتبة بنجاح | "..Name,source,0,255,0,true); 
    else 
        outputChatBox("**ليس لديك ساعات كافية",source,255,0,0,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 
  

بدل الكلنت حقك

بلكلنت حقي

  
addCommandHandler('رتب',function() 
        guiSetVisible( GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"} 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF32CBC6 tr:FF32CBC6 bl:FF32CBC6 br:FF32CBC6") 
  
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2],  
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,6,v[1],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,0,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )  
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.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 
  
  
  
  

م زبط ي الغالي

Link to comment

^

  
addCommandHandler('رتب',function() 
    if not ( guiGetVisible ( GUIEditor.window[1] ) ) then 
    guiSetVisible( GUIEditor.window[1] , true ) 
    showCursor( true ) 
    else 
    guiSetVisible( GUIEditor.window[1] , false ) 
    showCursor( false ) 
    end 
    end 
) 
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"} 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
  
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
        guiSetVisible(GUIEditor.window[1] ,false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.4) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
  
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2], 
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,3,v[3],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,254,244,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,3 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
   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 
Link to comment
^

  
addCommandHandler('رتب',function() 
    if not ( guiGetVisible ( GUIEditor.window[1] ) ) then 
    guiSetVisible( GUIEditor.window[1] , true ) 
    showCursor( true ) 
    else 
    guiSetVisible( GUIEditor.window[1] , false ) 
    showCursor( false ) 
    end 
    end 
) 
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"} 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
  
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
        guiSetVisible(GUIEditor.window[1] ,false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.4) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
  
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2], 
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,3,v[3],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,254,244,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,3 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
   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 

م زبط و شوف صورت الدي بوق سكربت

>

http://www.arabsharing.com/uploads/1452091155041.jpg

Link to comment

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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"}, 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF32CBC6 tr:FF32CBC6 bl:FF32CBC6 br:FF32CBC6") 
  
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2], 
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.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 
  
  
addCommandHandler('رتب',function() 
        guiSetVisible( GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 
Link to comment
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"}, 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF32CBC6 tr:FF32CBC6 bl:FF32CBC6 br:FF32CBC6") 
  
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2], 
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end  
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[3],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.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 
  
  
addCommandHandler('رتب',function() 
        guiSetVisible( GUIEditor.window[1], true) 
        showCursor(true) 
    end 
) 

كفو ظهرت الوحه لكن المعلومات الي تجي ب القريد لست م تجي فاضي القريد لست

شوف الدي بوق

http://cdn.top4top.co/p_560ixht1.jpg

Link to comment

^

كودي السابق شغال بس مدري ماشتغل عندك

جرب ذا

  
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"} 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
  
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
        guiSetVisible(GUIEditor.window[1] ,false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.4) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
  
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2], 
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end 
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,3,v[3],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,254,244,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,3 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
   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 
  
  
addCommandHandler('رتب',function() 
    guiSetVisible( GUIEditor.window[1] , true ) 
    showCursor( true ) 
    end 
) 
Link to comment
^

كودي السابق شغال بس مدري ماشتغل عندك

جرب ذا

  
  
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"}, 
{"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"} 
} 
  
  
  
function centerWindow(center_window,xx,yy) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
  
  
  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    window = {} 
} 
  
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") 
        guiSetVisible(GUIEditor.window[1] ,false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.staticimage[1], 0.92) 
        GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.4) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) 
        GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) 
        local font0_seguisym = guiCreateFont("seguisym.ttf", 10) 
        guiSetFont(GUIEditor.button[1], font0_seguisym) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") 
        GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[2], font0_seguisym) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6")     
  
  
  
addEventHandler("onClientGUIClick",GUIEditor.button[2], 
    function() 
        guiSetVisible(GUIEditor.window[1] ,false) 
        showCursor(false) 
    end 
,false) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,3,v[3],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,254,244,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); 
guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,3 )); 
local Name = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
   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 
  
  
addCommandHandler('رتب',function() 
    guiSetVisible( GUIEditor.window[1] , true ) 
    showCursor( true ) 
    end 
) 

[/

كفو جات لم اضرب اختيار الرتبه م تجي و السبب؟

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...