Search the Community
Showing results for tags 'كيف اخلي اسمي بلوحة اعلى تواجد يكون مزخرف وجميل كيف يعني احط اسمي فالمود ويطلعلي فلوحة فقط بسريال'.
-
aTable = { { "2-", " " }, { "3-", " " }, { "4-", " " }, { "5-", " " }, } Mrc = { { "1-", " " }, { "2-", " " }, { "3-", " " }, { "4-", " " }, { "5-", " " }, } GUIEditor = { tab = {}, tabpanel = {}, button = {}, window = {}, gridlist = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 655) / 2, (screenH - 391) / 2, 655, 391, "-x لــوحة أعلــى الاعبــــبين x-", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 33, 635, 322, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("أعلى [ 10 ] تواجد", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Hours", 0.5) addPlayers = function() setTimer( function() guiGridListClear(GUIEditor.gridlist[1]) timeTable = { }; for _, player in ipairs( getElementsByType( 'player' ) ) do table.insert( timeTable, { name = getPlayerName( player ), hours = getElementData( player, "PlayTime" ) or "0:0:0", hSort = tonumber(split(getElementData( player, "PlayTime" ) or "0:0:0", ":")[1]) or 0 } ) end table.sort( timeTable, function(a, b) return tonumber(a.hSort) > tonumber(b.hSort) end ) for i, _ in ipairs( timeTable ) do local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, i.."- "..timeTable[i].name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, timeTable[i].hours, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, 255, 0, 0) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 5, 255, 0) end end, 1000, 0 ) end addPlayers( ) GUIEditor.tab[2] = guiCreateTab("أعلى [ 10 ] لفل", GUIEditor.tabpanel[1]) GUIEditor.gridlist[2] = guiCreateGridList(10, 10, 615, 278, false, GUIEditor.tab[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "Player", 0.3) guiGridListAddColumn(GUIEditor.gridlist[2], "Level", 0.3) guiGridListAddColumn(GUIEditor.gridlist[2], "Kills", 0.3) function getTopLevel( ) levelTable = { }; for _, player in ipairs( getElementsByType( 'player' ) ) do local lvl = getElementData( player, 'Level' ) or '0' local kls = getElementData( player, 'Kills' ) or '0' table.insert( levelTable, { plr = player, Level = lvl, Kills = kls } ) end table.sort( levelTable, function( min, max ) return ( tonumber( min.Kills ) or '' ) > ( tonumber( max.Kills ) ), ( tonumber( min.Level ) or '' ) > ( tonumber( max.Level ) ) end ) return levelTable end setTimer( function( ) guiGridListClear( GUIEditor.gridlist[2] ) local pLevel = getTopLevel( ) for num = 1, #getElementsByType( 'player' ) do if ( num >= 10 ) then return end if ( pLevel[1] ) then local row = guiGridListAddRow( GUIEditor.gridlist[2] ) local pName = guiGridListSetItemText( GUIEditor.gridlist[2], row, 1, num..'- '..getPlayerName( pLevel[num].plr ), false, false ) local pValue = guiGridListSetItemText( GUIEditor.gridlist[2], row, 2, pLevel[num].Level, false, false ) local pValue2 = guiGridListSetItemText( GUIEditor.gridlist[2], row, 3, pLevel[num].Kills, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 100, 100, 100, 0) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 1, 255, 0, 0) guiGridListSetItemColor( GUIEditor.gridlist[2], row, 2, 5, 255, 0) end end end, 1000, 0 ) Heroيعني لما اخش لسيرفر بأسم كذا فلوحة يكون اسمي كذا ✖ ᕼᕮᖇO ✖