Jump to content

Help


Focker

Recommended Posts

I want to try to make a script that leaves the team list something like

function ponerPlayerList () 
    if ( players ) then  
        guiGridListClear(list) 
        for id, player in ipairs(getElementsByType("player")) do 
    local swats = ( player == localPlayer ) and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player )  == 'Criminals') 
            local row = guiGridListAddRow ( list ) 
            guiGridListSetItemText ( list, row, players, getPlayerName ( player ), false, false ) 
        end 
    end 
end 
  

Link to comment
function ponerPlayerList () 
    if ( players ) then 
        guiGridListClear(list) 
        for id, player in ipairs(getElementsByType("player")) do 
            if player ~= localPlayer and getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Criminals" then 
                local row = guiGridListAddRow ( list ) 
                guiGridListSetItemText ( list, row, players, getPlayerName ( player ), false, false ) 
            end 
        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...