antiSpam = {}
function antiChatSpam()
if isTimer(antiSpam[source]) then
cancelEvent()
outputChatBox("#ffffff"..getPlayerName(source).." #0000ff Chce Zaspamowac serwer! "..getPlayerName(source).." Zosta? zablokowany na: 1 min", getRootElement(), 255, 255, 0,true)
setPlayerMuted(source, true)
setTimer ( autoUnmute, 30000, 1, source)
else
antiSpam[source] = setTimer(function(source) antiSpam[source] = nil end, 1000, 1, source)
end
end
addEventHandler("onPlayerChat", root, antiChatSpam)