SA-MP Forums Archive
Hiding chat message from 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hiding chat message from console (/showthread.php?tid=90870)



Hiding chat message from console - mandbjp - 10.08.2009

Hi there.

I'm making some login system using OnPlayerText(). I wounder if there is anyway to remove or change the text will be printed to console..

This is a sample code.

public OnPlayerText(playerid, text[])
if (loginstatus[playerid]){
Func_Login(playerid, text);
text[0]=0; // it has no effect in console..
return 0; // to stop print in game screen.
}
return 1;
}

I tried this way to:
for(new i=0; text[i]; i++)
text[i]='*';

but still no effects in console.

It's not that realy nessesary, but if anyone can give me an advice... Thanks.


Re: Hiding chat message from console - MPKaboose - 10.08.2009

It's not possible I asked for this too, and I wanted to make something similar


Re: Hiding chat message from console - Woet - 10.08.2009

It's impossible.

Then again, if you can't trust the people that have access to server_log.txt, you should be worrying about other things such as your gamemode or scriptfiles.


Re: Hiding chat message from console - mandbjp - 11.08.2009

Thanks for replies.

So it's realy impossible, i got it.

Yeah, I also thought about writening the codes in OnPlayerCommandText() to not be printed. I just didn't want that needs to type "/" first. :P

The script will just run on my private server and I'm the only one can access to such files, so i guess it's still no problem.
I just wanted that to hide some "client's information" that printed in console.

Anyway, I will keep hoping that oneday it will be possible to such as things.

Thanks again.