mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:13:29 +00:00
Added fail callback UDP switch to turn of config on clientside
This commit is contained in:
@@ -22,10 +22,14 @@ addMissionEventHandler ["ExtensionCallback", {
|
|||||||
};
|
};
|
||||||
case "UDP SOCKET ERROR": {
|
case "UDP SOCKET ERROR": {
|
||||||
[_function, "error", _name] call FUNC(notify);
|
[_function, "error", _name] call FUNC(notify);
|
||||||
|
|
||||||
if (_function == "UDP Socket is not running") then {
|
if (_function == "UDP Socket is not running") then {
|
||||||
SETVAR(player,EGVAR(client,eudConnected),false);
|
SETVAR(player,EGVAR(client,eudConnected),false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (_function == "failed to bind UDP socket") then {
|
||||||
|
SETVAR(player,EGVAR(client,eudConnected),false);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
case "TCP SOCKET": {
|
case "TCP SOCKET": {
|
||||||
[_function, "success", _name] call FUNC(notify);
|
[_function, "success", _name] call FUNC(notify);
|
||||||
|
|||||||
Reference in New Issue
Block a user