momar5600 Posted September 23, 2016 Share Posted September 23, 2016 سلام عليكم ورحمة الله وبركاتة انا سويت لوحة فيها زر بدي لما تضغط زر يعضيك كيك يعني لما تضغط زر يعضي للي ضغط علي زر كيك وبس 1 Link to comment
Ahmed Ly Posted September 23, 2016 Share Posted September 23, 2016 --Client addEventHandler("onClientGUIClick",root, function () if ( source == button ) then triggerServerEvent("kick",localPlayer) end end ) --Server addEvent("kick",true) addEventHandler("kick",root, function () kickPlayer(source,"kick") end ) Link to comment
momar5600 Posted September 23, 2016 Author Share Posted September 23, 2016 سلام عليكم انا بدي اضيف بالفري روم عند الانتقال الي لاعب مكان تكتب فيه اسم لاعب يججيك بالجريد اسم لاعب يعني مكان البحث المهم انا سويتها بس بدي اكوادها Link to comment
mahmod3 Posted September 23, 2016 Share Posted September 23, 2016 function RefreshGridlist ( aElement , Col ) if ( getElementType ( aElement ) == "gui-gridlist" ) then guiGridListClear ( aElement ) Col = Col or 1 for i,v in ipairs ( getElementsByType("player") ) do local aRow = guiGridListAddRow ( aElement ) guiGridListSetItemText ( aElement , aRow , Col , getPlayerName ( v ) , false , false ) end end end تفضل Link to comment
!#NssoR_) Posted September 24, 2016 Share Posted September 24, 2016 8 hours ago, mahmod3 said: function RefreshGridlist ( aElement , Col ) if ( getElementType ( aElement ) == "gui-gridlist" ) then guiGridListClear ( aElement ) Col = Col or 1 for i,v in ipairs ( getElementsByType("player") ) do local aRow = guiGridListAddRow ( aElement ) guiGridListSetItemText ( aElement , aRow , Col , getPlayerName ( v ) , false , false ) end end end تفضل متأكد ان اكوادك نفس طلبه ؟ Link to comment
a7zan Posted September 24, 2016 Share Posted September 24, 2016 8 hours ago, mahmod3 said: function RefreshGridlist ( aElement , Col ) if ( getElementType ( aElement ) == "gui-gridlist" ) then guiGridListClear ( aElement ) Col = Col or 1 for i,v in ipairs ( getElementsByType("player") ) do local aRow = guiGridListAddRow ( aElement ) guiGridListSetItemText ( aElement , aRow , Col , getPlayerName ( v ) , false , false ) end end end تفضل -.- هذا يسوي ريفرش للقريد ليست مو بحث -.- Link to comment
momar5600 Posted September 24, 2016 Author Share Posted September 24, 2016 طيب انا ابي بحث او عضوني حتي فتكشنات احاول اسويها Link to comment
#DRAGON!FIRE Posted September 24, 2016 Share Posted September 24, 2016 onClientGUIChanged guiGetText guiGridListClear guiGridListAddRow guiGridListSetItemText Link to comment
Ahmed Ly Posted September 24, 2016 Share Posted September 24, 2016 "onClientGUIChanged" string.upper guiGetText getElementsByType getPlayerName string.find guiGridListAddRow guiGridListSetItemText getPlayerName Link to comment
momar5600 Posted September 24, 2016 Author Share Posted September 24, 2016 ماهو ا الخطا هنا addEventHandler("onClientResourceStart",resourceRoot, function() guiGridListSetSelectionMode( getControl( wndWarp, 'playerlist' ),2) local column = guiGridListAddColumn( getControl( wndWarp, 'playerlist' ), "Player Name", 0.89 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( getControl( wndWarp, 'playerlist' ) ) guiGridListSetItemText ( getControl( wndWarp, 'playerlist' ), row, column, getPlayerName(player), false, false ) guiGridListSetItemColor ( getControl( wndWarp, 'playerlist' ), row, column, 0, 250, 154, 255 ) end addEventHandler ( "onClientGUIClick", playerlist, click ) end end) function click () local playerName = guiGridListGetItemText ( getControl( wndWarp, 'playerlist' ), guiGridListGetSelectedItem ( playerlist ), 1 ) guiSetText ( getControl( wndWarp, '~|بحث عن لاعب|~' ), playerName ) end function list() guiGridListClear( getControl( wndWarp, 'playerlist' ) ) for id, players in ipairs (getElementsByType("player")) do local row = guiGridListAddRow( getControl( wndWarp, 'playerlist' ) ) guiGridListSetItemText( getControl( wndWarp, 'playerlist' ), row, 1, getPlayerName(players), false, false) guiGridListSetItemColor ( getControl( wndWarp, 'playerlist' ), row, 1, 0, 250, 154, 255 ) end end addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) wndWarp = { 'wnd', text = 'الانتقال الى الاعبين', width = 246, controls = { { 'lst', id='playerlist', width=231, x = 5, y= 62, height=343, columns={ {id='sharplayercol', text='الاعب', attr='name'} }, onitemdoubleclick=warpTo }, {'br'}, {'txt', id='sharplayer', text='~|بحث عن لاعب|~', onclick=click , x = 16, y= 23 ,width = 222}, {'br'}, {'btn', id='انتقال', onclick=warpTo}, {'btn', id='اغلاق', closeswindow=true} }, oncreate = warpInit } مممكن مساعدة Link to comment
</Mr.Tn6eL> Posted September 24, 2016 Share Posted September 24, 2016 ثلاث مواضيع نفس الطلب محد مجبور يرد عليك ترا 1 Link to comment
momar5600 Posted September 25, 2016 Author Share Posted September 25, 2016 (edited) اوف انا ماقلت اجبركم علشان ترردون علي وبعدين انتم ليه مسوين المنتدي مو علشان تساعدونا Edited September 25, 2016 by momar5600 Link to comment
!#NssoR_) Posted September 25, 2016 Share Posted September 25, 2016 29 minutes ago, momar5600 said: اوف انا ماقلت اجبركم علشان ترردون علي وبعدين انتم ليه مسوين المنتدي مو علشان تساعدونا اجل وش تسمي ردودك المتكرره ؟ وصحيح ان المنتدي للمساعده ولكن متي ماحسيت انك مروق تجي تساعد Link to comment
momar5600 Posted September 25, 2016 Author Share Posted September 25, 2016 طيب اوك خلاص انا بسكت نهائيا بس مممكن تساعدوني 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