function loadPlayers()
for index, value in ipairs(getElementsByType("player")) do
local Row = guiGridListAddRow(GridList)
if getElementData(value, "data1") then
guiGridListSetItemText(GridList, Row, 1, getPlayerName(value), false, false)
guiGridListSetItemColor(GridList, Row, 1, 255, 255, 0)
else
guiGridListSetItemText(GridList, Row, 2, getPlayerName(value), false, false)
guiGridListSetItemColor(GridList, Row, 2, 0, 255, 0)
end
end
end