ΞĪŚŚÀ Posted February 24, 2014 Share Posted February 24, 2014 السلام عليكم عندي Edit وقريد لست اسماء الاعبين ممكن كود الي يبحث عن الاعبين في الايديت . ؟ + مود اختصار نفس الشات يعني الشات ouptuChatBox اوفي مود التوب شات ouptuTopChat ابي نفسه بـ مميزات حلوة Link to comment
al-Kobra Posted February 24, 2014 Share Posted February 24, 2014 function Search () if ( source == GUIEditor.edit[5] ) then guiGridListClear ( GUIEditor.gridlist[2] ) local row = guiGridListAddRow ( GUIEditor.gridlist[2] ) local column = guiGridListAddColumn(GUIEditor.gridlist[2],"Players List ...", 1) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end end end end end هذا مال البحث Link to comment
ΞĪŚŚÀ Posted February 24, 2014 Author Share Posted February 24, 2014 function Search () if ( source == GUIEditor.edit[5] ) then guiGridListClear ( GUIEditor.gridlist[2] ) local row = guiGridListAddRow ( GUIEditor.gridlist[2] ) local column = guiGridListAddColumn(GUIEditor.gridlist[2],"Players List ...", 1) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end else for id, player in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( player ) ), string.upper ( text ), 1, true ) ) then guiGridListSetItemText ( GUIEditor.gridlist[2], row, column, getPlayerName ( player ), false, false ) guiGridListSetItemPlayerName ( GUIEditor.gridlist[2], guiGridListAddRow ( GUIEditor.gridlist[2] ), 1, getPlayerName ( player ), false, false ) end end end end end هذا مال البحث طيب وين كود الايديت ؟ Link to comment
ΞĪŚŚÀ Posted February 24, 2014 Author Share Posted February 24, 2014 function openInviteSearch() guiGridListClear(GUIEditor.gridlist[1]) for ind, plr in pairs(getElementsByType("player")) do local name = getPlayerName(plr) local row = guiGridListAddRow(GUIEditor.gridlist[1]) local r, g, b = getPlayerNametagColor(plr) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(name), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], row, 1, r or 255, g or 255, b or 255) end end addEventHandler("onClientGUIChanged", GUIEditor.edit[1], searchInvite, false) هذا كودي ماضبط Link to comment
PaiN^ Posted February 24, 2014 Share Posted February 24, 2014 جرب addEventHandler( "onClientGUIChanged", root, function( ) if source == Your.Edit then guiGridListClear( Your.Grid ) local text = guiGetText( source ) local column = guiGridListAddColumn( Your.Grid, "Players ..", 4 ) for _, v in ipairs( getElementsByType( "player" ) ) do if text ~= "" then local name = getPlayerName( v ) if name:find( v ) then local row = guiGridListAddRow( Your.Grid ) guiGridListSetItemText( Your.Grid, row, column, name, false, false ) end else local row = guiGridListAddRow( Your.Grid ) guiGridListSetItemText( Your.Grid, row, column, name, false, false ) end end end end ) لأسماء الايديت و القريد حقونك Your.Edit, Your.Grid غير Link to comment
ΞĪŚŚÀ Posted February 25, 2014 Author Share Posted February 25, 2014 جرب addEventHandler( "onClientGUIChanged", root, function( ) if source == Your.Edit then guiGridListClear( Your.Grid ) local text = guiGetText( source ) local column = guiGridListAddColumn( Your.Grid, "Players ..", 4 ) for _, v in ipairs( getElementsByType( "player" ) ) do if text ~= "" then local name = getPlayerName( v ) if name:find( v ) then local row = guiGridListAddRow( Your.Grid ) guiGridListSetItemText( Your.Grid, row, column, name, false, false ) end else local row = guiGridListAddRow( Your.Grid ) guiGridListSetItemText( Your.Grid, row, column, name, false, false ) end end end end ) لأسماء الايديت و القريد حقونك Your.Edit, Your.Grid غير اذا بحث يختفون الاعبين مرة وحدة ! واذا مسحت مايرجعون @@ Link to comment
' ρяofзśŝoя 亗 Posted February 25, 2014 Share Posted February 25, 2014 This review has been deleted Link to comment
PaiN^ Posted February 26, 2014 Share Posted February 26, 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
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