[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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)