5150 Posted April 25, 2016 Posted April 25, 2016 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 IIYAMA Posted April 29, 2016 Moderators Posted April 29, 2016 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)
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