Popular Post DRW Posted January 12, 2018 Popular Post Share Posted January 12, 2018 (edited) A primary security measure anyone with common sense would take: log everything. Absolutely everything. If you're a server owner, you know what you're dealing with; lots of players, lots of possible bugs and bad intentions. Yeah, they don't mix well. So, some time ago I have made this small and easy but really useful script which stores logs of whatever you want by just using an exported function. You won't have to worry about anything at all but the contents of the log , it creates a log if it does not exist, and if it exists the entry will appear at the next line. Each entry stores the time and date so you know when it all happened. You can choose to keep or to remove the color-codes, which is useful for chat logs or player names, for example. [SYNTAX] exports.easylogger:addLogEntry (text,logname[,removecolorcode])- text: The text. - logname: The name of the log. - removecolorcode: Whether to remove colorcodes or not. Set to true to remove, false otherwise. [EXAMPLE] exports.easylogger:addLogEntry("Hello world!","logfile1") This would store the "Hello world!" text into a logfile called "logfile1.log". This has been very useful to me, I've catched plenty of people doing shady things like abusing a money system by tracking the transactions, the teamchat and localchat of my server. So, really hope it helps you too. Community download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=15153 Edited January 12, 2018 by MadnessReloaded 2 2 Link to comment
anchor Posted January 19, 2018 Share Posted January 19, 2018 This is great. i'll leave mark here 1 Link to comment
DRW Posted January 22, 2018 Author Share Posted January 22, 2018 On 19/1/2018 at 08:13, anchor said: This is great. i'll leave mark here Thank you Link to comment
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