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? 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 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) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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