Tails Posted January 22, 2013 Posted January 22, 2013 Hi, I was wondering how I disable the spam protection ''dont repeat yourself'' etc on my server. Thanks in advance, Tails
Moderators IIYAMA Posted January 22, 2013 Moderators Posted January 22, 2013 Gamemode play/freeroam? gameplayer/freeroam(.zip)/fr_server line: 401 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) return else lastChatMessage[source] = msg end local r, g, b = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) .. ': #FFFFFF' .. msg:gsub('#%x%x%x%x%x%x', ''), g_Root, r, g, b, true) outputServerLog( "CHAT: " .. getPlayerName(source) .. ": " .. msg ) end end )
Tails Posted January 23, 2013 Author Posted January 23, 2013 Editor / race And thanks, I wil ltry this out.
x86 Posted January 23, 2013 Posted January 23, 2013 You can switch it off in gameplayer/freeroam(.zip)/settings.xml
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now