Jump to content

script


Nerses

Recommended Posts

Posted
Hello to everyone. Guys need a script that was banning spam through bind say.

No requests in this part of the forum, we don't do free scripts we help when your script is bugged or wrong.

Mostly a script request costs money too. try learn LUA instead.

Regards Viruz

  • 2 weeks later...
Posted

As of mute to do ban for 12 hours?

antiSpam = {}  
function antiChatSpam()  
    if isTimer(antiSpam[source]) then 
        cancelEvent()   
        setPlayerMuted(source, true) 
        setTimer ( autoUnmute, 4000, 1, source) 
    else 
        antiSpam[source] = setTimer(function(source) antiSpam[source] = nil end, 300, 1, source)  
    end 
end 
addEventHandler("onPlayerChat", root, antiChatSpam) 
  
  
function autoUnmute ( player ) 
    if ( isElement ( player ) and isPlayerMuted ( player ) ) then 
        setPlayerMuted ( player, false ) 
    end 
end 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...