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?

Paid Roleplay Mapper/Server Management - Message on forums or Discord for info

Fluent with Owlgaming Code. Discord message for paid full set-ups and help

My Discord: 5150#5150 (or .5150)

 

Monky Gaming Roleplay/Adventure Discord 
(English players and servers interested in collaborating or partnering message me)

https://discord.gg/SFBUHknpxy

  • 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)

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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