How to log information
#1

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?
Reply
#2

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;
}
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)