Jump to content

Show names only for admin


John_Scott

Recommended Posts

  
-- Print a list of all the alive players 
alivePlayers = getAlivePlayers () 
if ( alivePlayers ) then -- if we got the table 
    alivePlayersList = "none" 
    -- Loop through the table 
    for playerKey, playerValue in ipairs(alivePlayers) do 
        -- add their name to the list 
        if ( alivePlayersList == "none" ) then 
            alivePlayersList = getPlayerName ( playerValue ) 
        else 
            alivePlayersList = alivePlayersList .. ", " .. getPlayerName ( playerValue ) 
        end 
    end 
    outputChatBox ( "Alive Players: " .. alivePlayersList )     
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...