SA-MP Forums Archive
returning 0 onplayertext still prints message to console? - 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)
+--- Thread: returning 0 onplayertext still prints message to console? (/showthread.php?tid=523608)



returning 0 onplayertext still prints message to console? - Hoborific - 03.07.2014

I have NPCs doing logic in their own threads and they make remote calls through me using isplayernpc and onplayertext, now I have been returning 0 so ingame everything is perfect, but I can constantly see the NPCs executing commands in the log and it's become quite a pain, is there anyway around this?

My immediate thought was to disable chatlogging and manually print myself if the player isn't an NPC but this requires effort, is there a way around it?


Re: returning 0 onplayertext still prints message to console? - Jack_Leslie - 03.07.2014

Try adding chatlogging 0 to your server.cfg, not sure if that just disables chat or actual command printing as well.

If that doesn't work try logqueries 0