Quackers Posted September 22, 2009 Posted September 22, 2009 When creating a 'mod' yesterday, it gave the possibility of people claiming to have one something to cover up a huge amount of money they may have. And I needed a simple way to log it, Although I haven't created a staff panel for it yet to view the logs (as I don't think it's deserving) it would be easy, and maybe someone here would like to do it. It is really a very simple modification. And yes, I'm aware it could of been made more efficient, but I'm not really using it for much. However you could make it log alot more stuff with a little know how. So, all it does is update the DB with a userid and what they done. It has the "User" field for ID, "Event" field for what they were doing, E.G crimes and a "Text" field for saying what the user won or did. Run the SQL in phpmyadmin: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And then, wherever you want it to log: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That's just an example. Just change "crimes" to what they are actually doing and "name done a crime and earned $value" to whatever they won/achieved. I hope this become of use to some people, if you have any ideas you would like to see added I will do them. If no one creates a staff panel for this, I will happily do it. Added a staff panel (NOT TESTED, Made in like 2 minutes) Name staff_log.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
shedh Posted September 22, 2009 Posted September 22, 2009 hmmm, do you really need it to go into the DB? ever thought of creating a log file for different events? Quote
Quackers Posted September 22, 2009 Author Posted September 22, 2009 hmmm, do you really need it to go into the DB? ever thought of creating a log file for different events? It was originally only for me to keep an eye on a mod I'd created, it just stopped people saying "I got lucky and won alot". Then I thought this could of been use for other people, it's not the best, it's just another security measure to keep a eye on things. Easy to add to/optimize to be better. I don't really care whats done with it or if people pass it off as their own, very simple, most people could make it. It's a starting point. However, I like your idea and I will most likely do this. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.