Posts: 88
Threads: 12
Joined: Mar 2012
Reputation:
0
Hello there, need a little help regarding creating logs of chat. i am kinda new and have no idea so would love to get help. want it so that when ever someone types something it goes to logs and every command too and it should be shown on console.
Posts: 132
Threads: 19
Joined: May 2012
Reputation:
0
Well, for the first thing you have to enable "chatlogging" from server.cfg. For the other one you can simply put a printf under "public OnPlayerCommandPerformed(playerid, cmdtext[], success)" if you're using zcmd
Posts: 88
Threads: 12
Joined: Mar 2012
Reputation:
0
yea its showing in console but it doesnt save the chat/commands logs in scriptfiles folder.
Posts: 969
Threads: 26
Joined: Jan 2016
Reputation:
0
if you printf it's printed on server_log, if you want to save on a custom file you must write (fwrite or include function) to this file