[size=18]Paczka GoYD czyli paczka kt?r? udost?pni? SuperMen. Nie wiem jak podl?czyc duty Administracji prosz? o pomoc.
Strona serwera:
[code]function jestRCONem(gracz)
if getElementData(gracz, "duty") == 3 then return true end
end
function jestADMINem(gracz)
if getElementData(gracz, "duty") == 2 then return true end
end
function jestModem(gracz)
if getElementData(gracz, "duty") == 1 then return true end
end
addCommandHandler("admins", function(gracz,cmd)
admini = {}
rconi = {}
moderatorzy = {}
for k,v in ipairs(getElementsByType("player")) do
if jestRCONem(v) then
table.insert(rconi, getPlayerName(v))
elseif jestModem (v) then
table.insert(moderatorzy, getPlayerName(v))
elseif jestADMINem(v) then
table.insert(admini, getPlayerName(v))
end
end
for i=0,1 do
outputChatBox(" ", gracz)
end
outputChatBox("* Dost?pni RCON'i:", gracz, 255, 0, 0)
if #rconi > 0 then
outputChatBox(table.concat(rconi, ", "), gracz)
else
outputChatBox("brak", gracz)
end
outputChatBox(" ", gracz)
outputChatBox("* Dost?pni administratorzy:", gracz, 0, 100, 255)
if #admini > 0 then
output... |