Jump to content

طلب سريع


Recommended Posts

سلام عليكم انا مسوي 2 شيك بوكس

ابي لما يحدد علي شيك بوكس واحد

وضعط علي ال button

يجي الهو حدوو في القريد لست

ولو حدد ال2شيك بوكس التاني

يجي برده

Link to comment

ما ظبت

addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( )   
if ( source == GUIEditor.button[3] ) then 
local Row = guiGridListAddRow( grid ) 
if ( guiCheckBoxSetSelected(GUIEditor.checkbox[1]) == true ) and guiCheckBoxSetSelected(GUIEditor.checkbox[1]) == true ) 
 guiGridListSetItemText( grid, Row, Column4,guiCheckBoxSetSelected(GUIEditor.checkbox[1]),false,false) 
end 
end) 

Link to comment

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 
  
function SetWindowVisible ( Panel , StatsP , StatsC ) 
    guiSetVisible( Panel , StatsP) 
        showCursor( StatsC ) 
            centerWindow( Panel ) 
end 
  
local screenW, screenH = guiGetScreenSize() 
Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) 
guiWindowSetSizable(Window, false) 
guiSetVisible(Window,false) 
GridList = guiCreateGridList(9, 32, 336, 236, false, Window) 
local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) 
CheckBox1 = guiCreateCheckBox(12, 290, 123, 15, "1 Card", false,false, Window) 
CheckBox2 = guiCreateCheckBox(154, 290, 123, 15, "STC", false,false, Window)     
button = guiCreateButton(290, 302, 55, 16, "Create", false, Window)     
  
addEventHandler('onClientGUIClick',button, 
function ( ) 
guiGridListClear( GridList ) 
if ( guiCheckBoxGetSelected(CheckBox1) == true ) then  
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(CheckBox2) == true )  then 
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'STC',false,false) 
    end 
end , false ) 
  
addCommandHandler('Open', function ( ) local Get = guiGetVisible(Window) SetWindowVisible ( Window , not Get , not Get  ) end ) 
  
  

سويت لك المود كامل :o:o:o

Link to comment

ما جا في القريد لست تبعي

  
addEventHandler('onClientGUIClick',GUIEditor.button[1], 
function ( ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
         local Row = guiGridListAddRow( grid ) 
        guiGridListSetItemText( grid, Row,  Column4,'30ج',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
         local Row = guiGridListAddRow( grid ) 
        guiGridListSetItemText( grid, Row,  Column4,'50ج',false,false) 
    end 
end , false ) 

Link to comment
ما ظبت
addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( )   
if ( source == GUIEditor.button[3] ) then 
local Row = guiGridListAddRow( grid ) 
if ( guiCheckBoxSetSelected(GUIEditor.checkbox[1]) == true ) and guiCheckBoxSetSelected(GUIEditor.checkbox[1]) == true ) 
 guiGridListSetItemText( grid, Row, Column4,guiCheckBoxSetSelected(GUIEditor.checkbox[1]),false,false) 
end 
end) 

addEventHandler("onClientGUIClick", root, 
function() 
if source == BTN then 
local cheak1 =  guiCheckBoxGetSelected(CheakBox1) 
local cheak2 =  guiCheckBoxGetSelected(CheakBox2) 
if cheak1 == true and cheak2 == true then 
local Row = guiGridListAddRow(gridlist) 
guiGridListSetItemText( gridlist, Row, 1,"Your Text", false, false) 
end 
end 
end) 
  
Link to comment

ما ظبت

كل الاكواد

addEventHandler('onClientGUIClick',GUIEditor.button[1], 
function ( ) 
guiGridListClear(grid ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'STC',false,false) 
    end 
end , false ) 

wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
        guiWindowSetSizable(wnd, false) 
         guiSetVisible(wnd, false ) 
        grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
        local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)     

Link to comment
ما ظبت

كل الاكواد

addEventHandler('onClientGUIClick',GUIEditor.button[1], 
function ( ) 
guiGridListClear(grid ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'STC',false,false) 
    end 
end , false ) 

wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
        guiWindowSetSizable(wnd, false) 
         guiSetVisible(wnd, false ) 
        grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
        local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)     

كيف ما ظبت حقي

-_-

انتا اخترت ال2 و جربت تدوس ؟

ولا اخترت 1 فقط

Link to comment

wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd, false ) 
grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)   

وين كود انشاء الشيك بوكس ؟؟؟

تراك جالس تتلاعب على مخنا

بس الغلط مننا , اننا نساعدك

قلت لك حط الاكواد كامله دي مو كل الاكواد

+ احمد سد حلقك

وين الاند الناقص ؟

شكلك تستهبل عامخي

شف الكود حقي

وقول وين الاند الناقص

  
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 
function SetWindowVisible ( Panel , StatsP , StatsC ) 
    guiSetVisible( Panel , StatsP) 
        showCursor( StatsC ) 
            centerWindow( Panel ) 
end 
  
local screenW, screenH = guiGetScreenSize() 
Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) 
guiWindowSetSizable(Window, false) 
guiSetVisible(Window,false) 
GridList = guiCreateGridList(9, 32, 336, 236, false, Window) 
local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) 
CheckBox1 = guiCreateCheckBox(12, 290, 123, 15, "1 Card", false,false, Window) 
CheckBox2 = guiCreateCheckBox(154, 290, 123, 15, "STC", false,false, Window)     
button = guiCreateButton(290, 302, 55, 16, "Create", false, Window)     
  
addEventHandler('onClientGUIClick',button, 
function ( ) 
guiGridListClear( GridList ) 
if ( guiCheckBoxGetSelected(CheckBox1) == true ) then  
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'1 Card',false,false) 
    end 
if ( guiCheckBoxGetSelected(CheckBox2) == true )  then 
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'STC',false,false) 
    end 
end , false ) 
  
addCommandHandler('Open', function ( ) local Get = guiGetVisible(Window) SetWindowVisible ( Window , not Get , not Get  ) end ) 
Link to comment
wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd, false ) 
grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)   

وين كود انشاء الشيك بوكس ؟؟؟

تراك جالس تتلاعب على مخنا

بس الغلط مننا , اننا نساعدك

قلت لك حط الاكواد كامله دي مو كل الاكواد

+ احمد سد حلقك

وين الاند الناقص ؟

شكلك تستهبل عامخي

شف الكود حقي

وقول وين الاند الناقص

function SetWindowVisible ( Panel , StatsP , StatsC ) 
    guiSetVisible( Panel , StatsP) 
        showCursor( StatsC ) 
            centerWindow( Panel ) 
end 
  
local screenW, screenH = guiGetScreenSize() 
Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) 
guiWindowSetSizable(Window, false) 
guiSetVisible(Window,false) 
GridList = guiCreateGridList(9, 32, 336, 236, false, Window) 
local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) 
CheckBox1 = guiCreateCheckBox(12, 290, 123, 15, "1 Card", false,false, Window) 
CheckBox2 = guiCreateCheckBox(154, 290, 123, 15, "STC", false,false, Window)     
button = guiCreateButton(290, 302, 55, 16, "Create", false, Window)     
  
addEventHandler('onClientGUIClick',button, 
function ( ) 
guiGridListClear( GridList ) 
if ( guiCheckBoxGetSelected(CheckBox1) == true ) then  
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'1 Card',false,false) 
    end 
if ( guiCheckBoxGetSelected(CheckBox2) == true )  then 
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'STC',false,false) 
    end 
end , false ) 
  
addCommandHandler('Open', function ( ) local Get = guiGetVisible(Window) SetWindowVisible ( Window , not Get , not Get  ) end ) 

مو انتا اقول علي كودو اول كود فوق +

احترم نفسك شوي انا بكلمك بأدب

+

ما حد قالك لا تساعدو فوق هو ما فهم تبي تساعدو ما تبي حريتك ما حد مسكك و قالك ساعدو :?

Link to comment

اوكيةة انا شكيت انك تكلمني لاني قلت انا مجربه , وانت رديت قلت كيف مجربه وهو ناقص 2 اند

+ انا اساعده بس هو بيصعب علينا الموضوع

المفروض يطرح الاكواد ويخلصنا

خايف على شو الله يهديك + اسف احمد\

:lol::lol:

Link to comment
GUIEditor.checkbox[1] = guiCreateCheckBox(135, 256, 214, 19, "مميز ( 50 جنيه / شهرين )", false, false, GUIEditor.window[1]) 
        GUIEditor.checkbox[2] = guiCreateCheckBox(330, 260, 214, 19, "عادي ( 30 جنيه / شهرين )", false, false, GUIEditor.window[1]) 

wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
        guiWindowSetSizable(wnd, false) 
         guiSetVisible(wnd, false ) 
        grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
        local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)     

واحد يفتح ف10

والفي قريد لست

ف9

Link to comment

الوحتين اهم !

GUIEditor = { 
    checkbox = {}, 
    window = {}, 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(289, 180, 374, 286, "#text", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
        GUIEditor.checkbox[1] = guiCreateCheckBox(14, 67, 246, 15, "Card", false, false, GUIEditor.window[1]) 
        GUIEditor.checkbox[2] = guiCreateCheckBox(14, 97, 246, 15, "STC", false, false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(76, 154, 225, 27, "Send", false, GUIEditor.window[1])     
         
        wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
        guiWindowSetSizable(wnd, false) 
         guiSetVisible(wnd, false ) 
        grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
        guiGridListAddColumn(grid, "ChedkBox", 0.2)  
         
    end 
) 
  
  
guiSetVisible ( GUIEditor.window[1], false ) 
        function OpenWin() 
    if guiGetVisible ( GUIEditor.window[1] ) then   
       guiSetVisible ( GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F10", "down", OpenWin) 
  
guiSetVisible ( wnd, false ) 
        function OpenWin() 
    if guiGetVisible ( wnd ) then   
       guiSetVisible ( wnd, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( wnd, true ) 
        showCursor(true) 
        guiSetInputEnabled(false) 
  
    end 
end 
bindKey("F9", "down", OpenWin) 
  
  
addEventHandler('onClientGUIClick',GUIEditor.button[1], 
function ( ) 
guiGridListClear(grid ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'STC',false,false) 
    end 
end , false ) 

Link to comment

  
GUIEditor = { checkbox = {}, window = {}, button = {} } 
GUIEditor.window[1] = guiCreateWindow(289, 180, 374, 286, "#text", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetVisible(GUIEditor.window[1], false) 
GUIEditor.checkbox[1] = guiCreateCheckBox(14, 67, 246, 15, "Card", false, false, GUIEditor.window[1]) 
GUIEditor.checkbox[2] = guiCreateCheckBox(14, 97, 246, 15, "STC", false, false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(76, 154, 225, 27, "Send", false, GUIEditor.window[1])     
wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd, false ) 
grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
guiGridListAddColumn(grid, "ChedkBox", 0.2) 
  
guiSetVisible ( GUIEditor.window[1], false ) 
guiSetVisible ( wnd, false ) 
  
bindKey("F10", "down",  
function ( ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1]) ) 
        showCursor( guiGetVisible(GUIEditor.window[1]) ) 
            guiSetInputEnabled( guiGetVisible(GUIEditor.window[1]) ) 
end ) 
  
  
 bindKey("F9", "down",  
function ( ) 
    guiSetVisible ( wnd, not guiGetVisible(wnd) ) 
        showCursor( guiGetVisible(wnd) ) 
            guiSetInputEnabled( guiGetVisible(wnd) ) 
end ) 
  
  
  
addEventHandler('onClientGUIClick',GUIEditor.button[2], 
function ( ) 
guiGridListClear(grid ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'STC',false,false) 
    end 
end , false ) 
Edited by Guest
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...