Instructions:
1. Use a executer For example Bowens Perma Infection Executer
2. Execute this code or add it to Lystical Menu or some other menu.
3. Press Numpad/ To type in IRC and press ESCAPE to send the message.
4. Go to lystical Menu Thread and thank Lystic.
Script:
Code:
/*Created By Lystic & xCyberxx*/
"newMessage" addPublicVariableEventHandler {
_text = _this select 1;
systemchat _text;
};
sendMessage = {
_Message = _this select 0;
_name = name player;
_msg = format["<%1>: %2",_name,_Message];
newMessage = _msg;
for "_i" from 0 to 9999 do {
_i publicVariableClient "newMessage";
};
};
[] spawn {
while{true} do {
if(inputAction "opticsMode" > 0) then {
createDialog "RscDisplayChat";
hint "Type a message to the IRC (Press ESCAPE to send)";
disableserialization;
while{true} do {
_ctrl = (findDisplay 24) displayCtrl 101;
_text = ctrlText _ctrl;
waitUntil{_text != ctrlText _ctrl || isNull (finddisplay 24)};
if(isNull (findDisplay 24)) exitWith {[_text] call sendMessage;};
};
};
};
};