Hiding chat message from console
#1

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

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

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.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)