Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: dutyadministracji
1. DutyAdministracji SQL (GoYd)
Witam mam problem ot?? mam paczke GoYd i dodalem sie do bazy danych SQL "Duty administracji" Jednak jak restartuje skrypt to nie jak wpisuje duty to dalej mi pisze "nie jestes w ekipie serwera" Prosze o pomoc :D


[lua]
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...