addEventHandler("onPlayerChat",getRootElement(), function(string) if string == "test" or string == "k****" then cancelEvent() outputChatBox("Nie przeklinaj !") end end)
local slowa = { {test}, } function zakaz() for i,v in ipairs(slowa) do if slowa then outputChatBox("Nie przeklinaj!") takePlayerMoney(source,10) end end addEventHandler("onPlayerChat",getRootElement,zakaz) cancelEvent() end