SA-MP Forums Archive
[Include] [INC]Log 1.0, Log anything in you server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC]Log 1.0, Log anything in you server (/showthread.php?tid=105897)



[INC]Log 1.0, Log anything in you server - bruno_orlandi - 31.10.2009

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:



Re: [INC]Log 1.0, Log anything in you server - Ritchie999 - 02.11.2009

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


Re: [INC]Log 1.0, Log anything in you server - Tannz0rz - 03.11.2009

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.


Re: [INC]Log 1.0, Log anything in you server - Ritchie999 - 03.11.2009

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


Re: [INC]Log 1.0, Log anything in you server - bruno_orlandi - 07.11.2009

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


Re: [INC]Log 1.0, Log anything in you server - Ritchie999 - 07.11.2009

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


Re: [INC]Log 1.0, Log anything in you server - bruno_orlandi - 07.11.2009

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?


Re: [INC]Log 1.0, Log anything in you server - Ritchie999 - 07.11.2009

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


Re: [INC]Log 1.0, Log anything in you server - jameskmonger - 29.11.2009

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