Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [] spawn {
- _connected = false;
- ["(my ts server ip)", "6685", "", "", ""] call acre_api_fnc_joinServer;
- _warningAcreTS3text = format["%1, this server requires TeamSpeak. Please connect to my TS server",name player];
- _kickingAcreTS3text = format["%1 kicked off for not being on TeamSpeak.",name player];
- sleep 60;
- if (isNil "acre_sys_io_pipeHandle") then
- {
- if (!isDedicated) then {player globalChat _warningAcreTS3text};
- } else {
- [3795, "comeplaydayz"] call acre_api_fnc_joinChannel;
- _connected = true;
- };
- sleep 120;
- if (isNil "acre_sys_io_pipeHandle") then
- {
- [-1, {player globalChat _this}, _kickingAcreTS3text] call CBA_fnc_globalExecute;
- sleep 1;
- serverCommand format ["#kick %1",_name];
- endMission "LOSER";
- } else {
- if(!_connected) then {
- [3795, "comeplaydayz"] call acre_api_fnc_joinChannel;
- _connected = true;
- };
- };
- sleep 60;
- if (isNil "acre_sys_io_pipeHandle") then
- {
- [-1, {player globalChat _this}, _kickingAcreTS3text] call CBA_fnc_globalExecute;
- sleep 1;
- serverCommand format ["#kick %1",_name];
- endMission "LOSER";
- } else {
- if(!_connected) then {
- [3795, "comeplaydayz"] call acre_api_fnc_joinChannel;
- _connected = true;
- };
- };
- sleep 60;
- if (isNil "acre_sys_io_pipeHandle") then
- {
- [-1, {player globalChat _this}, _kickingAcreTS3text] call CBA_fnc_globalExecute;
- sleep 1;
- serverCommand format ["#kick %1",_name];
- endMission "LOSER";
- } else {
- if(!_connected) then {
- [3795, "comeplaydayz"] call acre_api_fnc_joinChannel;
- _connected = true;
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement