Jump to content

طلب كود قائمة الاعبين


Recommended Posts

guiCreateGridList

Example 1: This example creates a player list on the right of the screen and fills it

-- Client Side # 
function createPlayerList () 
    --Create the grid list element 
    local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) 
    --Create a players column in the list 
    local column = guiGridListAddColumn( playerList, "Player", 0.85 ) 
    if ( column ) then --If the column has been created, fill it with players 
        for id, player in ipairs(getElementsByType("player")) do 
            local row = guiGridListAddRow ( playerList ) 
            guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false ) 
        end 
    end 
end 

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