Jump to content

خشووو سرييع شئ مهم


Recommended Posts

  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        Gblue = guiCreateGridList(428, 226, 245, 167, false)         
        guiGridListAddColumn(Gblue, "#", 0.2)         
        guiGridListAddColumn(Gblue, "player", 0.7)     
        guiSetAlpha(Gblue, 0.80)       
        guiSetVisible ( Gblue , false ) 
  
        Gred = guiCreateGridList(167, 228, 245, 167, false) 
        guiSetVisible ( Gred, false ) 
        guiSetAlpha(Gred, 0.80) 
        guiGridListAddColumn(Gred, "#", 0.2)     
        guiGridListAddColumn(Gred, "Player", 0.7)   
    end 
) 
  
function ShowGridList ( ) 
    local BlueTeam = getTeamFromName("Blue") 
    local RedTeam = getTeamFromName("Red") 
    guiGridListClear ( Gblue ) 
    guiGridListClear ( Gred ) 
    for k, v in ipairs( getElementsByType ("player") ) do 
    if getPlayerTeam ( v ) == BlueTeam then 
        local bRow = guiGridListAddRow( Gblue ) 
        guiGridListSetItemText(Gblue, bRow, 1, k, true, false) 
        guiGridListSetItemText(Gblue, bRow, 2, getPlayerName(v), true, false) 
    elseif getPlayerTeam ( v ) == RedTeam then 
        local rRow = guiGridListAddRow( Gred ) 
        guiGridListSetItemText(Gblue, rRow, 1, k, true, false) 
        guiGridListSetItemText(Gblue, rRow, 2, getPlayerName(v), true, false) 
        end 
    end 
end 
  
setTimer ( ShowGridList, 100, 1 ) 
addEventHandler ( 'onClientPlayerQuit', resourceRoot, ShowGridList ) 
addEventHandler ( 'onClientPlayerJoin', resourceRoot, ShowGridList ) 
addEventHandler ( 'onClientPlayerChangeNick', resourceRoot, ShowGridList ) 

Link to comment

جرب ذا اكيد شغال

setTimer ( 
    function ( ) 
        guiGridListClear ( GUIEditor.gridlist[1] ) 
        if guiGetVisible ( GUIEditor.window[1] ) then 
for k,v in ipairs(getPlayersInTeam(getTeamFromName("اسم التيم"))) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, getPlayerName(v), false, false) 
            end 
        end 
    end 
, 4000, 0 ) 

Link to comment
جرب ذا اكيد شغال
setTimer ( 
    function ( ) 
        guiGridListClear ( GUIEditor.gridlist[1] ) 
        if guiGetVisible ( GUIEditor.window[1] ) then 
for k,v in ipairs(getPlayersInTeam(getTeamFromName("اسم التيم"))) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, getPlayerName(v), false, false) 
            end 
        end 
    end 
, 4000, 0 ) 

تماااام شغال شكرآ

و شكرآ xClassiCx

على تعبك معى

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...