Search the Community
Showing results for tags 'group system'.
-
--Client function addToList(account, rank, joined, lastTime, nick, online) local row = guiGridListAddRow(adminMembsList) guiGridListSetItemText(adminMembsList, row, 1, tostring(nick), false, false) guiGridListSetItemText(adminMembsList, row, 2, tostring(account), false, false) guiGridListSetItemText(adminMembsList, row, 3, tostring(rank), false, false) guiGridListSetItemText(adminMembsList, row, 4, tostring(lastTime), false, false) if (online) then guiGridListSetItemColor(adminMembsList, row, 1, 0, 255, 0) guiGridListSetItemColor(adminMembsList, row, 2, 0, 255, 0) guiGridListSetItemColor(adminMembsList, row, 3, 0, 255, 0) guiGridListSetItemColor(adminMembsList, row, 4, 0, 255, 0) else guiGridListSetItemColor(adminMembsList, row, 1, 255, 0, 0) guiGridListSetItemColor(adminMembsList, row, 2, 255, 0, 0) guiGridListSetItemColor(adminMembsList, row, 3, 255, 0, 0) guiGridListSetItemColor(adminMembsList, row, 4, 255, 0, 0) end end addEvent("groupSystem.addToList", true) addEventHandler("groupSystem.addToList", root, addToList) --Server function printManagment(player) if (player) then player = client end local group = getPlayerGroup(client) for ind, data in pairs(GAC) do if (data[1] == group) then local rank, joined, lastTime = GAC[ind][2], GAC[ind][3],GAC[ind][4], GAC[ind][5] triggerClientEvent(client, "groupSystem.addToList", client, tostring(ind), rank, joined, lastTime, getAccountPlayer(getAccount(ind)), getGroupBankAmount(group)) end end end addEvent("groupSystem.print", true) addEventHandler("groupSystem.print", root, printManagment) http://prntscr.com/g4ef8q Two player connected, but shows my game name for two