witam mam kilku krotny zapis mysql log?w nie wiem czym to jest spowodowane [lua]function getAdmin(player, level)
local r = exports["goyd-db"]:dbGet("SELECT * FROM ogrpg_admins WHERE serial=? AND level=?", getPlayerSerial(player),serial)
if r and #r > 0 then
return true
else
return false
end
end
function isAdmin(plr)
if getAdmin(plr,1) or getAdmin(plr, 2) or getAdmin(plr, 3) or getAdmin(plr, 4) then
return true
else
return false
end
end
addCommandHandler("v", function(plr, cmd, ...)
if not getElementData(plr, "player:premium")~= false and not isAdmin(plr) ~= false then outputChatBox("Musisz posiada? status premium by pisa? na czacie globalnym!",plr,78,255,0) return end
local message = table.concat ( { ... }, " " )
local name = getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
for _,p in pairs(getElementsByType("player")) do
if getElementData(p,"player:premium") or getAdmin(p, 1) or getAdmin(p, 2) or getAdmin(p, 3) or getAdmin(p, 4) then
outputChatBox("#FFC000[PREMIUM] ["..getElementData(plr,"id").."]"..name.."#ffffff: "..message:gsub("#%x%x%x%x%x%x","").."", p, 255, 255, 255, true)
end
local q = string.format("Czat v>"..getElementData(plr,"id").."]"..name..": "..message:gsub("#%x... |