Posts: 466
Threads: 72
Joined: Jan 2010
Reputation:
0
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?
Posts: 666
Threads: 94
Joined: Aug 2009
Reputation:
0
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;
}