سويت مثل ما قولت سفاح لكن صار ما يشتغل اساسا
function Topps( )
guiGridListClear( top[3] )
local g = getPlayersSortByaScore ( )
local c = getPlayersSortBylevel ( )
local aRow = guiGridListAddRow( top[3] )
for i = 1, 20 do
if ( g [ i ] )then
guiGridListSetItemText( top[3], aRow, 1, i ..'-', false, false )
guiGridListSetItemText( top[3], aRow, 2, getPlayerName ( g [ i ].player ), false, false )
guiGridListSetItemText( top[3], aRow, 3, convertNumber( g [ i ].aScore ), false, false )
guiGridListSetItemColor( top[3], aRow, 2, getPlayerNametagColor( g [ i ].player ) )
guiGridListSetItemText( top[3], aRow, 4, convertNumber( c [ i ].alevel ), false, false )
guiGridListSetItemColor( top[3], aRow, 4, 0, 255, 0 )
guiGridListSetItemColor( top[3], aRow, 1, 255, 255, 0 )
guiGridListSetItemColor( top[3], aRow, 3, 0, 255, 0 )
end
end
end
addEventHandler("onClientResourceStart",resourceRoot,Topps)
addEventHandler("onClientPlayerJoin",root,Topps)
addEventHandler("onClientPlayerQuit",root,Topps)
addEventHandler("onClientPlayerChangeNick",root,Topps)