SA-MP Forums Archive
Y U No clear chat ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Y U No clear chat ? (/showthread.php?tid=409477)



Y U No clear chat ? - network - 21.01.2013

Hai guys (almost changed u to a)
I have a simple idea for SA:MP, clearing the chat when its being closed (Esc button) or just setting its value to "" (nothing) so people wouldnt show their rcon by some mistake (sometimes i was 100% sure that chat is empty, and on chat it showed /rcon login PW)
In vb.net it would be like:
Код:
'This code happens on chat close (esc) THIS IS JUST A COMMENT
ChatBox.Text = "" 'Chat is cleared, its value is set to like..nothing
Of course this cant be probably used in SA:MP because the code up is VB.NET and if im correct then SA:MP is made in C++ , but im pretty sure its easy to convert.ChatBox.Text means that it changes "Text" value in ChatBox (Textbox)
I think its not so hard coding, and you could add this idea.


Re: Y U No clear chat ? - Jay_ - 21.01.2013

I don't really like this idea and I doubt a lot of others will either. If you're in the middle of typing something, somebody suddenly comes up to you and starts shooting, you can press ESC to close the chat input box before sending the message, kill the player, then re-open it and continue typing. I'd be annoyed if I had to start typing the whole sentence again when I re-opened it.


Re: Y U No clear chat ? - HyDrAtIc - 21.01.2013

Quote:
Originally Posted by Jay_
Посмотреть сообщение
I don't really like this idea and I doubt a lot of others will either. If you're in the middle of typing something, somebody suddenly comes up to you and starts shooting, you can press ESC to close the chat input box before sending the message, kill the player, then re-open it and continue typing. I'd be annoyed if I had to start typing the whole sentence again when I re-opened it.
Your right, eh I doubt it's not useful at all, many people are going to abuse it.


Re: Y U No clear chat ? - Astralis - 21.01.2013

Quote:
Originally Posted by network
Посмотреть сообщение
Hai guys (almost changed u to a)
I have a simple idea for SA:MP, clearing the chat when its being closed (Esc button) or just setting its value to "" (nothing) so people wouldnt show their rcon by some mistake (sometimes i was 100% sure that chat is empty, and on chat it showed /rcon login PW)
In vb.net it would be like:
Код:
'This code happens on chat close (esc) THIS IS JUST A COMMENT
ChatBox.Text = "" 'Chat is cleared, its value is set to like..nothing
Of course this cant be probably used in SA:MP because the code up is VB.NET and if im correct then SA:MP is made in C++ , but im pretty sure its easy to convert.ChatBox.Text means that it changes "Text" value in ChatBox (Textbox)
I think its not so hard coding, and you could add this idea.
Use /clearchat ingame, script it. No one wants a shit like that.


Re: Y U No clear chat ? - Astralis - 21.01.2013

Quote:
Originally Posted by TreyTrey
Посмотреть сообщение
What are you trying to say?
inshort, if anyone press ESC, his chat will be deleted.