SA-MP Forums Archive
How to log information - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to log information (/showthread.php?tid=127619)



How to log information - ruckfules99 - 14.02.2010

Hey, how can i log my servers information?

So if theres a cash increase, it logs it


What ever command is typed, it logs it

Any ideas?


Re: How to log information - DiddyBop - 14.02.2010

well this is for bans, but u can edit to work for almost all.


Add BanLog(String); in your /ban thingie.. w.e

forward BanLog(String[]);
public BanLog(String[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",String);
new File:hFile;
hFile = fopen("Logs/ban.log", io_append);
fwrite(hFile, entry);
fclose(hFile);

return 1;
}


Re: How to log information - mansonh - 14.02.2010

There are login systems available:
heres one of them
[FS] or [Addon] Lords Logging System