![]() |
|
|
|
#1
|
|||
|
|||
|
Made some rework on the script:
latest version: http://forum.1cpublishing.eu/showpos...8&postcount=41 Added a exept version: private void sendChatMessageTo(int army, string[] exepttoplayerlanguages, string msg, object[] parms) private void sendScreenMessageTo(int army, string[] exepttoplayerlanguages, string msg, object[] parms) Second Argument is a array of string. so you can enter the languages this message should not be send sendScreenMessageTo(-1, new string[] { "de", "ru" }, "Hello", null); usefull if you have send a Message to for example the german players but dont want send a other language message to them sendScreenMessageTo(-1, "de" }, "Hallo", null); sendScreenMessageTo(-1, new string[] { "de" }, "Hello", null); so the germans (with the german game version) get the german "Hallo" and all other players gets the english "Hello". Last edited by FG28_Kodiak; 10-12-2011 at 12:29 PM. |
|
#2
|
|||
|
|||
|
Just WOW! A lot of work and quality one. I will use it in a new mission version.
BTW can I replace my methods that send messages to individual players with your methods somehow? I use methods like follows: Code:
private void objMsg(Player player)
{
switch (player.LanguageName())
{
case "de":
GamePlay.gpLogServer(new Player[] { player }, "Achieve air superiority and attack ground targets in C5, D4 and E3!", null);
break;
case "ru":
GamePlay.gpLogServer(new Player[] { player }, "Обеспечьте превосходство в воздухе и атакуйте наземные цели в квадратах C5, D4 и E3!", null);
break;
default:
GamePlay.gpLogServer(new Player[] { player }, "Achieve air superiority and attack ground targets in C5, D4 and E3!", null);
break;
}
}
I will replace "de" message if you give me a translation |
![]() |
| Thread Tools | |
| Display Modes | |
|
|