addEventHandler('onPlayerChat', g_Root,
function(msg, type)
if type == 0 then
cancelEvent()
if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then
outputChatBox("Stop spamming main chat!", source, 255, 0, 0)
return
else
chatTime[source] = getTickCount()
end
if get("*chat/blockRepeatMessages") == "true" and lastChatMessage[source] and lastChatMessage[source] == msg then
outputChatBox("Stop repeating yourself!", source, 255, 0, 0)
end
end
)
وضيفة الكود اذا احد كتب مثلا هلا وكتبها مرا ثانيه ماتطلع في الشات
الكود اخذته من الفري روم بس مااضبط