Raised This Month: $12 Target: $400
 3% 

Chat Language


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyalmmm
Member
Join Date: Dec 2010
Old 12-29-2011 , 09:26   Chat Language
Reply With Quote #1

Hello
I Used the newchars include to write new words to the chat
but my goal was to "translate" what the player wrote to the language
but when I say translate I mean if the letter is a so it will be replaced to the letter that is stand near to is in the keyboard .
so what I need is the way to see what player is writing before its gone to the server's chat .
then replace the letters with my language letters(Hebrew).
send the message in hebrew format.
Thank for the helpers
eyalmmm is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-29-2011 , 15:13   Re: Chat Language
Reply With Quote #2

To show a new message and not show the original you just need to use engclient_cmd(id, "say", "new message here") then return PLUGIN_HANDLED. If that doesn't work then you have to recreate the chat message manually. There are several threads here about doing this and are usually mentioned with color chat.
__________________

Last edited by fysiks; 12-29-2011 at 15:15.
fysiks is offline
eyalmmm
Member
Join Date: Dec 2010
Old 12-30-2011 , 00:33   Re: Chat Language
Reply With Quote #3

this is not the problem
But i thought of client_print and then just convert the id to name
eyalmmm is offline
eyalmmm
Member
Join Date: Dec 2010
Old 12-30-2011 , 09:20   Re: Chat Language
Reply With Quote #4

ok I got all but I saw I need to reflect the letters order do someone know how?
thats what I tried but nothing
PHP Code:
new ts[192] , BufferNum;
        for ( new 
charsmax(szBuffer); i-- )
        {     
            
ts[i] = szBuffer[BufferNum++]
        } 

Last edited by eyalmmm; 12-30-2011 at 09:22.
eyalmmm is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode