[FilterScript] [FS]Advanced Log System by Joe Staff
#1

About

The point of this log system is to organize everything that happens on a server into folders instead of a single sloppy file. It uses ******' YSF plugin for folder creation. There are 3 logs per player, per day: General, Payments, and Kills-Deaths. General has brief information of what happens, things like "Player1 kills Player 2 with flowers" or "Player1's cash decreased by $3," it also logs everything that the concerning player is able to see, things like PMs and Server Messages are included. Payments shows increases and decreases in a player's cash, I'll soon set it to determine a probable cause of cash flow (will say "Most Likely Cause: Stunt, or Death, or Hacks"). The Kills-Deaths log will show precise information at the time of a player's death. The 2 players involved will both get the information added to their files, all information is included like positions, weapons, money, etc.

Installation

Add the following defines to the script you want to have access to the log (Don't forget FilterScripts)
pawn Код:
#define J_SendClientMessageToAll(%1,%2) CallRemoteFunction("Log","iiis",-1,-1,1,%2); SendClientMessageToAll(%1,%2)
#define J_SendClientMessage(%1,%2,%3) CallRemoteFunction("Log","iiis",%1,-1,2,%3); SendClientMessage(%1,%2,%3)
#define J_SendPlayerMessageToPlayer(%1,%2,%3) CallRemoteFunction("Log","iiis",%1,%2,3,%3); SendPlayerMessageToPlayer(%1,%2,%3)
#define J_SendPlayerMessageToAll(%1,%2) CallRemoteFunction("Log","iiis",-1,%1,4,%2); SendPlayerMessageToAll(%1,%2)
#define J_GivePlayerMoney(%1,%2) CallRemoteFunction("Log","iiis",%1,%2,7,"Scripted"); GivePlayerMoney(%1,%2)
#define J_GivePlayerMoneyEx(%1,%2,%3) CallRemoteFunction("Log","iiis",%1,%2,7,%3); GivePlayerMoney(%1,%2)
Then replace the codes to the re-definitions above***
Download ******' YSF plugin for your OS and place it in your "plugins" folder
Add "plugins YSF" to your server.cfg file, "YSF.so" if you use linux
Set "query" to 0 in the server.cfg file

If you wish to change it, then you'll need YSF.inc in your "pawno/includes" folder which is conveniently hidden in ******' YSF topic (link below)

Download & Links
Links down to host changing, a back-up was not made.
Advanced Log System v1.4 .PWN
http://existencerpg.com/files/scripts/ALSv1.4.pwn
Advanced Log System v1.4 .AMX <--Needed
http://existencerpg.com/files/scripts/ALSv1.4.amx
******' YSF Plugin Topic <--Also Needed
http://forum.sa-mp.com/index.php?topic=83109.0

Notes
***Warning, if your script contains writings such as
pawn Код:
if(GetPlayerVehicleID(playerid)==10)
{
  PlayerVehicle[playerid]=10;
  return J_SendClientMessage(playerid,0xFF0000FF,"You're in vehicle ID 10!");
}
you will get an "Unreachable Code" error, you have to change it to
pawn Код:
if(GetPlayerVehicleID(playerid)==10)
{
  PlayerVehicle[playerid]=10;
  J_SendClientMessage(playerid,0xFF0000FF,"You're in vehicle ID 10!");
  return 1;
}
So that the "return" is after the code

Certain options can be turned off like Health Logging by opening the script and modifying the definitions located near the top

Documentation also found inside of the script:
Код:
//////////////////////////Advanced Log System//////////////////////////
//Set "query" in server.cfg to 0. Make sure to turn off any other  //
//script logging systems like PEN:LS' "debug"            //
//In the case of PEN:LS, setting DEBUG to 0 will turn it off, consult//
//the author of other scripts to determine how to turn off, if    //
//possible, any logging system on their script.           //
//Replace SendClientMessageToAll with J_SendClientMessageToAll along //
//with the other functions being replaced with the above definitions.//
//The functions are case sensitive and should still end with a semi- //
//colon. ';' Thank you for using the Advanced Log System and good  //
//luck with your server.                       //
//                                  //
// Version 1.1                            //
//   -Added OnPlayerConnect Logs showing from what IP player is  //
//     joining                          //
//   -Added logs to show a player or player's vehicle getting hurt//
//   -Redfine variables below to 'false' to turn off player and  //
//     vehicle health checks                   //
//                                  //
// Version 1.2                            //
//   -Added logs to show increases and decreases in player cash  //
//   -Fixed inaccurate log of vehicle health upon entering new  //
//     new vehicle                        //
//   -Added Vehicle information for Kills-Death Log        //
//                                  //
// Version 1.3                            //
//   -Rearranged folders to go by date and then player. Doing so //
//     Allows hosts to delete dates instead of going from player //
//     to player                         //
//   -Added logs to show when a player's interior changes, like  //
//     entering buildings                    //
//   -Added logs to show when a player teleports a distance    //
//     further than allowed. Distance variable changable below //
//                                  //
// Version 1.4                            //
//   -Changed directory "User Files" to "User Logs"        //
//   -Added logs that show increases to ammo           //
///////////////////////////////////////////////////////////////////////
Reply
#2

Wow Joe thats good =]
Reply
#3

Surely this means if you're in a busy server and someone says something it's being saved to 200 files at once.. a bit intensive? I'm sure it does its job OK though..
Reply
#4

Seen this in action, its nice
Reply
#5

Quote:
Originally Posted by Weirdosport
Surely this means if you're in a busy server and someone says something it's being saved to 200 files at once.. a bit intensive? I'm sure it does its job OK though..
Quite, this script isn't for the server that is weak at heart... drive...
Reply
#6

pls new link
Reply
#7

screens?
Reply
#8

Nice Job
Reply
#9

nice work
Reply
#10

Great log system! Ill use it for my server
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)