AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Foreign language (https://forums.alliedmods.net/showthread.php?t=174952)

Diegorkable 12-27-2011 19:37

Foreign language
 
Hey,
is there any way to type in a server (supported by a plugin ofcourse) in a foreign language? For example if Im japanese I can alt-tab and start writing in japanese.
I am not japanese, but I saw a mod in my counter, that supports the server in a way that you can type in our language, because usually when I Alt-Tab in my server and try to type it wont write ANYTHING, also if I try to print the ASCII Value of my language letters to chat it will print nothing.

Is there any way to do it then?

fysiks 12-27-2011 20:01

Re: Foreign language
 
Huh? Alt-Tab takes you to your desktop.

Diegorkable 12-27-2011 20:02

Re: Foreign language
 
Quote:

Originally Posted by fysiks (Post 1620742)
Huh? Alt-Tab takes you to your desktop.

Alt-Shift, sorry :D

fysiks 12-27-2011 20:03

Re: Foreign language
 
Quote:

Originally Posted by Diegorkable (Post 1620743)
Alt-Shift, sorry :D

And what does that do?

Diegorkable 12-27-2011 20:10

Re: Foreign language
 
Quote:

Originally Posted by fysiks (Post 1620744)
And what does that do?

Well, I never thought about people who live in countries which are english-only related to this feature. But if I live in a country which is non-english, my keyboard has a feature that when I tap Alt+Shift it switches to my mother language. For example, people from russian can type in english, once they tap Alt+Shift it switches to russian. Keyboards aren't english-only or russian-only.

Well, the main point is, I want to know how can I make CS 1.6 chat support other languages than english, cuz I saw it is possible.

fysiks 12-27-2011 21:16

Re: Foreign language
 
I think you have to have that version of the game. Valve makes different versions of the game for different languages. IIRC.

https://developer.valvesoftware.com/...pplication_IDs

If someone knows for sure I would like to know also :).

MyPc 12-28-2011 06:05

Re: Foreign language
 
By using http://www.utf8-chartable.de/ you can replace the english characters with the characters you want like Hebrew or add them to your string.
Also take a look at this include https://forums.alliedmods.net/showthread.php?t=164789 and you should understand how to use it, but if you are using Hebrew you need to use a Reverse String stock so you could read the word.
You should check out this http://amxx.pl/topic/52571-include-polskie-znaki/ the real include authors topic, there is a comment which show you a use of this include / hex with the counter-strike 1.6 chat.

Diegorkable 12-28-2011 08:19

Re: Foreign language
 
It was easy to understand how to use it, the question is, if I want to make for example that people will be able to type in hebrew in chat, will I must tell them that they need to write the letters in english, and it'll be converted after when pressing 'ENTER' to the hebrew letters? according to their keyboard location.

EXAMPLE: (since you know hebrew it'll be better for you to understand, nir)
Lets say I press Y for the 'messagemode say', then I type there "akuo", I hit enter, and it'll be converted to: שלום
so, what im asking, is it possible to make the 'messagemode say' be able to contain hebrew words while typing? so i'll see on my screen for example:

"say: היי מה קורה", or I must do the example at the top?

MyPc 12-28-2011 08:27

Re: Foreign language
 
Quote:

Originally Posted by Diegorkable (Post 1620966)
It was easy to understand how to use it, the question is, if I want to make for example that people will be able to type in hebrew in chat, will I must tell them that they need to write the letters in english, and it'll be converted after when pressing 'ENTER' to the hebrew letters? according to their keyboard location.

EXAMPLE: (since you know hebrew it'll be better for you to understand, nir)
Lets say I press Y for the 'messagemode say', then I type there "akuo", I hit enter, and it'll be converted to: שלום
so, what im asking, is it possible to make the 'messagemode say' be able to contain hebrew words while typing? so i'll see on my screen for example:

"say: היי מה קורה", or I must do the example at the top?

No i don't think that its possible, because you need to change the "messagemode XXX" every letter typed, And if I'm not wrong there isn't any way to know if a player pressed a key like letter "k" or letter "p".
You must let the player know that this message will be written in Hebrew according to his keyboard.

fysiks 12-28-2011 15:03

Re: Foreign language
 
What shows up when you just type in your native language?


All times are GMT -4. The time now is 05:38.

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