Jump to content

antispam help


5150

Recommended Posts

Posted

so i have an admin tags resource that doesnt allow any seperate antispam mod to work. will the antispam work if i combine it into the same script as admintags? if so, how would i successfully combine them?

  • Moderators
Posted

There is another solution, open in your admin tag resource, the serverside file:

https://wiki.multitheftauto.com/wiki/WasEventCancelled

https://wiki.multitheftauto.com/wiki/OnPlayerChat

When the event onPlayerChat gets executed, use this:

if not wasEventCancelled() then 
-- all other code inside that function 
end 

It will checks if the the event was cancelled. If it is not cancelled, then show the admin tags.

(if the event "onPlayerChat" is cancelled, the typed text doesn't get added in to the chatbox)

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...