function globalMessage(thePlayer, cmd, ...)
local result=exports['ogrpg-db']:dbGet('SELECT * FROM mute WHERE active=1 AND serial=? AND time>NOW() LIMIT 1;', playerSerial)
if #result == 1 then outputChatBox("Posiadasz Zablokowane Pisane na czat :c", plr, 255, 255, 255) return end
local message = table.concat ( { ... }, " " )
local name = getPlayerName(thePlayer)
outputChatBox("#FF0000[GLOBAL]#00FF00"..name..": #FFFFFF"..message, getRootElement(), 255, 255, 255, true)
outputServerLog("[Czat Globalny]Nick: "..name.." Napisa?/?a: "..message.."")
end
addCommandHandler("global", globalMessage)