Jump to content

طلب كود ...


Recommended Posts

----------------=[search !]=----------------- 
addEventHandler("onClientGUIChanged",root, 
    function () 
        if ( source == Edit ) then -- اسم الايديت  
            local text = guiGetText(Edit) 
            if ( text == "" ) then 
                players()  -- هنا تحط اسم الفنكشن الي سويته عشان تجيب الاعبين للقريد لست 
            else 
                guiGridListClear(the gridList) 
                for i,v in ipairs(getElementsByType("player")) do 
                    local name = getPlayerName(v) 
       if string.find(string.upper(name),string.upper(guiGetText(Edit))) then 
                        local row = guiGridListAddRow(the GridList) 
                        guiGridListSetItemText(the GridList,row,1,name,false,false) 
                        guiGridListSetItemColor(the GridList,row,1,255,255,0) 
                    end 
                end 
            end 
        end 
    end 
) 

اذا ما فهمت شيء تفضل بالرد

موفق

Link to comment
----------------=[search !]=----------------- 
addEventHandler("onClientGUIChanged",root, 
    function () 
        if ( source == Edit ) then -- اسم الايديت  
            local text = guiGetText(Edit) 
            if ( text == "" ) then 
                players()  -- هنا تحط اسم الفنكشن الي سويته عشان تجيب الاعبين للقريد لست 
            else 
                guiGridListClear(the gridList) 
                for i,v in ipairs(getElementsByType("player")) do 
                    local name = getPlayerName(v) 
       if string.find(string.upper(name),string.upper(guiGetText(Edit))) then 
                        local row = guiGridListAddRow(the GridList) 
                        guiGridListSetItemText(the GridList,row,1,name,false,false) 
                        guiGridListSetItemColor(the GridList,row,1,255,255,0) 
                    end 
                end 
            end 
        end 
    end 
) 

اذا ما فهمت شيء تفضل بالرد

موفق

انا مابغى اسم الاعب يجي في قريد لست ابي شي ثاني :roll:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...