Jump to content

اخر موضوع شوفه


Recommended Posts

ي جدي فكك من الدي اكس

كود اوسكار ما ابية ميمو ابيه لاببل label

فهمت ؟

وشكرا

الميمو راح يحطها على شكل اسطر

بالنسبة لليبل , راح يجيك نص الكلام

يعني جزء مخفي وجزء ظاهر

Link to comment
    local Rules = { 
    {"قوانين السيرفر",'هنا تكتب قوانين سيرفرك '}, 
    {"من نحن",'هنا اكتب من نحن مواصفات اي شئ اللى تحب تكتبه اكتبه'}, 
    } 
      
    local screenW, screenH = guiGetScreenSize() 
    window = guiCreateWindow((screenW - 663) / 2, (screenH - 534) / 2, 663, 534, "قوانين وشروط السيرفر الرجاء الالتزام بها", false) 
    guiWindowSetSizable(window, false) 
    guiSetAlpha(window, 1.00) 
      
    gridlist = guiCreateGridList(9, 26, 190, 498, false, window) 
    guiGridListAddColumn(gridlist, "القوانين والشروط", 0.9) 
    button = guiCreateButton(204, 487, 449, 37, "اغلاق اللوحه", false, window) 
    memo = guiCreateLabel(199, 24, 454, 459, "", false, window) 
    guiSetAlpha(memo, 0.60) 
    guiMemoSetReadOnly(memo, true) 
    for _, rules in pairs(Rules) do 
    local row = guiGridListAddRow(gridlist) 
    guiGridListSetItemText(gridlist,row,1,rules[1],false,false) 
    end 
    addEventHandler( "onClientGUIClick",root, 
    function( ) 
    if source == gridlist then 
    if (guiGridListGetSelectedItem(gridlist) == -1) then return end 
    for _, rules in pairs(Rules) do 
    if (guiGridListGetItemText(gridlist,guiGridListGetSelectedItem(gridlist), 1) == rules[1]) then 
    guiSetText(memo,rules[2],100000) 
    end 
    end 
    elseif source == button then 
    guiSetVisible (window, false) 
    showCursor(false) 
    end 
    end) 
    guiSetVisible (window, false) 
    bindKey ("F5", "down", 
    function() 
    guiSetVisible(window, not guiGetVisible(window)) 
    showCursor(guiGetVisible(window)) 
    end) 

Link to comment

اذا كنت تبي الكلام دى اكس سويته لك

local Rules = { 
{"قوانين السيرفر", "File1.txt",133,150,0}, 
{"من نحن", "File2.txt",50,100,0},} 
ruleS = 'Rules By oskar' 
local screenW, screenH = guiGetScreenSize() 
window = guiCreateWindow((screenW - 663) / 2, (screenH - 534) / 2, 663, 534, "قوانين وشروط السيرفر الرجاء الالتزام بها", false) 
guiWindowSetSizable(window, false) 
guiSetAlpha(window, 1.00) 
local X,Y = guiGetPosition(window, false) 
addEventHandler("onClientGUIMove",window,function () 
X,Y = guiGetPosition(window, false) 
end, false) 
color = tocolor(255,255,255,100) 
function r1() 
dxDrawRectangle(X+199,Y+24,454, 459,color,true) 
dxDrawText (tostring(ruleS),X+201,Y+30, 454,30, tocolor(255,255,255,255),1, "default-bold", "left", "top",  false,false, true, false, false) 
end 
gridlist = guiCreateGridList(9, 26, 190, 498, false, window) 
guiGridListAddColumn(gridlist, "القوانين والشروط", 0.9) 
button = guiCreateButton(204, 487, 449, 37, "اغلاق اللوحه", false, window) 
for _, rules in pairs(Rules) do 
local row = guiGridListAddRow(gridlist) 
guiGridListSetItemText(gridlist,row,1,rules[1],false,false) 
end 
addEventHandler( "onClientGUIClick",root,function( ) 
if source == gridlist then 
for _, rules in pairs(Rules) do 
if (guiGridListGetItemText(gridlist,guiGridListGetSelectedItem(gridlist), 1) == rules[1]) then 
ruleS = fileRead(fileOpen(rules[2]),99999) 
color = tocolor(rules[3],rules[4],rules[5],255) 
end 
end 
elseif source == button then 
guiSetVisible (window, false) 
showCursor(false) 
removeEventHandler("onClientRender",root,r1) 
end 
end) 
guiSetVisible (window, false) 
bindKey("F5", "down",function ( ) 
if guiGetVisible (window) then 
guiSetVisible (window, false ) 
showCursor ( false ) 
removeEventHandler("onClientRender",root,r1) 
else 
guiSetVisible (window, true ) 
showCursor (true)  
addEventHandler("onClientRender",root,r1) 
end 
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...