[Include] [INC]Log 1.0, Log anything in you server
#1

A simple include with 2 functions:

LogInit()

Must be in your OnGameModeInit or OnFilterScriptInit

and: Log(string[])

Example of using the Log:

Код:
public OnFilterScriptInit()
{
	LogInit();
	return 1;
}

public OnPlayerText(playerid, text[])
{
	new name[64];
	GetPlayerName(playerid,name,sizeof(name));
    new str[256];
	format(str, sizeof(str), "%s : %s", name, text);
	Log(str);
	return 1;
}
This is very useful than the server log because you may log anything, you may put the log command in OnPlayyerEnterVehicle, to see the vehicle id the players get, the server log cant do this, you may log money update from players on server side moneys, you may log the weapon the players are using, buying, selling depends of the functions on server, you may log OnPlayConnect or Disconnect, interiorchange, vehiclemods,commandtext, anything in your server

Download here:
Reply
#2

i really dont see the point in this, there is already a server log
Reply
#3

Quote:
Originally Posted by Ritchie999
i really dont see the point in this, there is already a server log
Why so negative? Maybe it could be used for admins to take notes, or something. No need to kick his script to the teeth and make fun of it.

Nice job.
Reply
#4

Quote:
Originally Posted by Tannz0rz
Quote:
Originally Posted by Ritchie999
i really dont see the point in this, there is already a server log
Why so negative? Maybe it could be used for admins to take notes, or something. No need to kick his script to the teeth and make fun of it.

Nice job.
I didnt mean it in a negative way, i wasn't trying to insult him or the script or anything, i was just wondering
Reply
#5

This is very useful than the server log because you may log anything, you may put the log command in OnPlayyerEnterVehicle, to see the vehicle id the players get, the server log cant do this, you may log money update from players on server side moneys, you may log the weapon the players are using, buying, selling depends of the functions on server, you may log OnPlayConnect or Disconnect anything in your server
Reply
#6

Quote:
Originally Posted by bruno_orlandi
This is very useful than the server log because you may log anything, you may put the log command in OnPlayyerEnterVehicle, to see the vehicle id the players get, the server log cant do this, you may log money update from players on server side moneys, you may log the weapon the players are using, buying, selling depends of the functions on server, you may log OnPlayConnect or Disconnect anything in your server
you should of said that at the start. i take my comment back, this script is VERY usefull
Reply
#7

Quote:
Originally Posted by Ritchie999
Quote:
Originally Posted by bruno_orlandi
This is very useful than the server log because you may log anything, you may put the log command in OnPlayyerEnterVehicle, to see the vehicle id the players get, the server log cant do this, you may log money update from players on server side moneys, you may log the weapon the players are using, buying, selling depends of the functions on server, you may log OnPlayConnect or Disconnect anything in your server
you should of said that at the start. i take my comment back, this script is VERY usefull
you changed your opinion?
Reply
#8

Quote:
Originally Posted by bruno_orlandi
Quote:
Originally Posted by Ritchie999
Quote:
Originally Posted by bruno_orlandi
This is very useful than the server log because you may log anything, you may put the log command in OnPlayyerEnterVehicle, to see the vehicle id the players get, the server log cant do this, you may log money update from players on server side moneys, you may log the weapon the players are using, buying, selling depends of the functions on server, you may log OnPlayConnect or Disconnect anything in your server
you should of said that at the start. i take my comment back, this script is VERY usefull
you changed your opinion?
yes
Reply
#9

Maybe make it save to /scriptfiles/, under the name of "ChatLog.cfg", or "PMLog.cfg".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)