ΞĪŚŚÀ Posted February 27, 2014 Share Posted February 27, 2014 السلام عليكم ممكن كود اذا ضغطته يغلق النافذة ويرجعك للي قبلها اتمنى تفيدوني عندي هذا الكود مو شغال ALI = guiCreateButton(320, 27, 38, 36, "X", false, GUIEditor.window[2]) guiSetFont(ALI, "default-bold-small") guiSetProperty(ALI, "NormalTextColour", "FFFFFFFF") addEventHandler("onClientGUIClick",ALI, function () guiSetVisible(GUIEditor.window[2],false) showCursor(false) end ) Link to comment
shwaeki Posted February 27, 2014 Share Posted February 27, 2014 addEventHandler("onClientGUIClick",ALI, function () guiSetVisible(GUIEditor.window[2],false) guiSetVisible(اسم النافذة يلي الك,true) end ) Link to comment
ΞĪŚŚÀ Posted February 27, 2014 Author Share Posted February 27, 2014 لم يضبط ALI = guiCreateButton(320, 27, 38, 36, "X", false, GUIEditor.window[2]) guiSetFont(ALI, "default-bold-small") guiSetProperty(ALI, "NormalTextColour", "FFFFFFFF") end ) ALI = guiCreateButton(320, 27, 38, 36, "X", false, GUIEditor.window[2]) guiSetFont(ALI, "default-bold-small") guiSetProperty(ALI, "NormalTextColour", "FFFFFFFF") addEventHandler("onClientGUIClick",ALI, function () guiSetVisible(GUIEditor.window[2],false) guiSetVisible(ALI,true) end ) Link to comment
shwaeki Posted February 27, 2014 Share Posted February 27, 2014 addEventHandler('onClientGUIClick', root, function ( ) if ( source == Button ) then guiSetVisible(اسم الوحة يلي تغلق لما تعص,false) guiSetVisible(اسم الوحة يلي تفتح مو اسم الزر,true) end end ) Button = اسم الزر Link to comment
mouamle Posted February 27, 2014 Share Posted February 27, 2014 تفضل هذا شغال 100 100 من صنعي function resourceStart () bindKey ("الزر", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (اللوحه اسم) if (visableornot == true) then guiSetVisible (اللوحه اسم, false) showCursor (false) end if (visableornot == false) then guiSetVisible (اللوحه اسم, true) showCursor (true) end end addEventHandler ("onClientGUIClick", getRootElement(), onClientGUIClick) Link to comment
ΞĪŚŚÀ Posted February 27, 2014 Author Share Posted February 27, 2014 (edited) ماضبطش addEventHandler('onClientGUIClick', root, function ( ) if ( source == ALI [/color]) then guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[1],true) end end ) Edited February 27, 2014 by Guest Link to comment
#DRAGON!FIRE Posted February 27, 2014 Share Posted February 27, 2014 تفضل هذا شغال 100 100 من صنعي function resourceStart () bindKey ("الزر", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (اللوحه اسم) if (visableornot == true) then guiSetVisible (اللوحه اسم, false) showCursor (false) end if (visableornot == false) then guiSetVisible (اللوحه اسم, true) showCursor (true) end end addEventHandler ("onClientGUIClick", getRootElement(), onClientGUIClick) مسوي عفسة انت ؟ .. رجأء لو ما عندكـ خبرة كافية لأ تساعد ذذ addEventHandler( "onClientGUIClick", resourceRoot, function ( ) if ( source == Button ) then guiSetVisible( GUIEditor.window[2], false ) guiSetVisible( WindowName, not guiGetVisible( WindowName ) ) end end ) بـ اسم الزر حقكـ Button استبدل بـ السطر الثاني # بـ اسم النافذة حقكـ WindowName استبدل السطر الرابع # Link to comment
ΞĪŚŚÀ Posted February 27, 2014 Author Share Posted February 27, 2014 تفضل هذا شغال 100 100 من صنعي function resourceStart () bindKey ("الزر", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (اللوحه اسم) if (visableornot == true) then guiSetVisible (اللوحه اسم, false) showCursor (false) end if (visableornot == false) then guiSetVisible (اللوحه اسم, true) showCursor (true) end end addEventHandler ("onClientGUIClick", getRootElement(), onClientGUIClick) مسوي عفسة انت ؟ .. رجأء لو ما عندكـ خبرة كافية لأ تساعد ذذ addEventHandler( "onClientGUIClick", resourceRoot, function ( ) if ( source == Button ) then guiSetVisible( GUIEditor.window[2], false ) guiSetVisible( WindowName, not guiGetVisible( WindowName ) ) end end ) بـ اسم الزر حقكـ Button استبدل بـ السطر الثاني # بـ اسم النافذة حقكـ WindowName استبدل السطر الرابع # كفووووووووو والله كفيت ووفيت ياشنب بس بسألك حاقة ياعم ممكن كود بحث عن الاعبين بقريدس ليستتس Link to comment
#DRAGON!FIRE Posted February 27, 2014 Share Posted February 27, 2014 addEventHandler( "onClientGUIChanged", root, function( ) if source == Your.Edit then guiGridListClear( Your.Grid ) local col = guiGridListAddColumn( Your.Grid, "Players ..", 5 ) local text = guiGetText( source ) if string.len( string.gsub( text, "%s", "" ) ) > 0 then for _, player in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( Your.Grid ) local name = getPlayerName( player ) if name:find( text ) then guiGridListSetItemText( Your.Grid, row, col, name, false, false ) end end else for _, player in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( Your.Grid ) local name = getPlayerName( player ) guiGridListSetItemText( Your.Grid, row, col, name, false, false ) end end end end ) Link to comment
Mostafa,) Posted February 27, 2014 Share Posted February 27, 2014 addEventHandler( "onClientGUIChanged", root, function( ) if source == Your.Edit then guiGridListClear( Your.Grid ) local col = guiGridListAddColumn( Your.Grid, "Players ..", 5 ) local text = guiGetText( source ) if string.len( string.gsub( text, "%s", "" ) ) > 0 then for _, player in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( Your.Grid ) local name = getPlayerName( player ) if name:find( text ) then guiGridListSetItemText( Your.Grid, row, col, name, false, false ) end end else for _, player in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( Your.Grid ) local name = getPlayerName( player ) guiGridListSetItemText( Your.Grid, row, col, name, false, false ) end end end end ) حقوق عناد Link to comment
#DRAGON!FIRE Posted February 27, 2014 Share Posted February 27, 2014 addEventHandler( "onClientGUIChanged", root, function( ) if source == Your.Edit then guiGridListClear( Your.Grid ) local col = guiGridListAddColumn( Your.Grid, "Players ..", 5 ) local text = guiGetText( source ) if string.len( string.gsub( text, "%s", "" ) ) > 0 then for _, player in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( Your.Grid ) local name = getPlayerName( player ) if name:find( text ) then guiGridListSetItemText( Your.Grid, row, col, name, false, false ) end end else for _, player in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( Your.Grid ) local name = getPlayerName( player ) guiGridListSetItemText( Your.Grid, row, col, name, false, false ) end end end end ) حقوق عناد عنأد مين ؟, الله يسستر عليك Link to comment
ΞĪŚŚÀ Posted February 27, 2014 Author Share Posted February 27, 2014 addEventHandler( "onClientGUIChanged", root, function( ) if source == Your.Edit then guiGridListClear( Your.Grid ) local col = guiGridListAddColumn( Your.Grid, "Players ..", 5 ) local text = guiGetText( source ) if string.len( string.gsub( text, "%s", "" ) ) > 0 then for _, player in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( Your.Grid ) local name = getPlayerName( player ) if name:find( text ) then guiGridListSetItemText( Your.Grid, row, col, name, false, false ) end end else for _, player in ipairs( getElementsByType( "player" ) ) do local row = guiGridListAddRow( Your.Grid ) local name = getPlayerName( player ) guiGridListSetItemText( Your.Grid, row, col, name, false, false ) end end end end ) جربته ومو شغال من قبل Link to comment
Mostafa,) Posted February 27, 2014 Share Posted February 27, 2014 حطيته كلنت ولا سيرفر ؟ Link to comment
ΞĪŚŚÀ Posted February 27, 2014 Author Share Posted February 27, 2014 حطيته كلنت ولا سيرفر ؟ انا اعرف وين احطهه شغال لاكن البحث خربان بس تبحث يختفون الاعبين + ولو مسحت النص مايرجعون Link to comment
ΞĪŚŚÀ Posted February 27, 2014 Author Share Posted February 27, 2014 string.find الاخ شارب شي ؟ Link to comment
Mostafa,) Posted February 27, 2014 Share Posted February 27, 2014 string.find الاخ شارب شي ؟ لا هذا انت سكران وبلشت تخرف وتقول الاخ شارب شي --- سو ي ففنكشن وبس Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now