local editB = YOUREDIT
addEventHandler("onClientGUIChanged", root,
function()
if source == editB then
if ( guiGetText( source ) == "" ) then
guiGridListClear( GridList )
for i, v in ipairs ( getElementsByType( 'player' ) ) do
local Row = guiGridListAddRow( GridList )
guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false )
guiGridListSetItemText ( GridList, Row, 2, getPlayerTime( v ), false, false )
end
else
guiGridListClear( GridList )
for i, v in ipairs ( getElementsByType( 'player' ) ) do
local Row = guiGridListAddRow( GridList )
if string.find ( getPlayerName( v ), guiGetText( editB ) ) then
guiGridListSetItemText ( GridList, Row, 1, getPlayerName ( v ), false, false )
guiGridListSetItemText ( GridList, Row, 2, getPlayerTime( v ), false, false )
end
end
end
end
end
)
YOUREDIT = اسم الايديت بوكس حقك