Jump to content

Faction panel: members with clickable label


Artisz

Recommended Posts

Hi again!

In the panel there is the members name, but when there are more member's than one, I can click just the latest member's name.

I have an idea: To the label, add id(I don't know how can I write itxD).

How can I do this?

  
local forgatni = 0 
local player_cache = {} 
local elem = 0 
             
player_cache = getElementsByType("player") 
  
for k,v in ipairs(player_cache) do 
  
                local name = getPlayerName(v):gsub("_", " ") 
                if (k > forgatni and elem < 14) then 
                    elem = elem + 1 
                     
        
                    memberlist = guiCreateLabel(400,60 + elem * (30) ,700,50,name,false,bg) 
                 end 
end 

It is just a test, so the members are the online players!

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