Jump to content

getPlayersInTeam


Plate

Recommended Posts

Hola tengo una duda esto esta bien?

function showmembers() 
local row = guiGridListAddRow(members) 
   local row, col = guiGridListGetSelectedItem ( members ) 
    if ( row and col and row ~= -1 and col ~= -1 ) then 
        local team = guiGridListGetItemText ( members, row, mlist ) 
guiGridListSetItemText(members, row, mlist, getPlayersInTeam(team), false, false) 
end 
end 
addEventHandler("onClientGUIClick", showlist, showmembers, false) 

Link to comment
function showmembers() 
   local row, col = guiGridListGetSelectedItem ( clist ) 
    if ( row and col and row ~= -1 and col ~= -1 ) then 
    local team = guiGridListGetItemText ( clist, row, columnC ) 
    for i, v in ipairs (getPlayersInTeam(getTeamFromName(team))) do 
    local row = guiGridListAddRow(members) 
    guiGridListSetItemText(members, row, mlist, getPlayerName(v), false, false) 
end 
end 
addEventHandler("onClientGUIClick", showlist, showmembers, false) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...