Advertisement
Guest User

Untitled

a guest
Jan 12th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. [] spawn {
  2.  
  3. _connected = false;
  4.  
  5. ["(my ts server ip)", "6685", "", "", ""] call acre_api_fnc_joinServer;
  6.  
  7. _warningAcreTS3text = format["%1, this server requires TeamSpeak. Please connect to my TS server",name player];
  8. _kickingAcreTS3text = format["%1 kicked off for not being on TeamSpeak.",name player];
  9.  
  10. sleep 60;
  11.  
  12. if (isNil "acre_sys_io_pipeHandle") then
  13. {
  14. if (!isDedicated) then {player globalChat _warningAcreTS3text};
  15. } else {
  16.  
  17. [3795, "comeplaydayz"] call acre_api_fnc_joinChannel;
  18.  
  19. _connected = true;
  20.  
  21. };
  22.  
  23. sleep 120;
  24.  
  25. if (isNil "acre_sys_io_pipeHandle") then
  26. {
  27. [-1, {player globalChat _this}, _kickingAcreTS3text] call CBA_fnc_globalExecute;
  28. sleep 1;
  29. serverCommand format ["#kick %1",_name];
  30. endMission "LOSER";
  31. } else {
  32. if(!_connected) then {
  33.  
  34. [3795, "comeplaydayz"] call acre_api_fnc_joinChannel;
  35.  
  36. _connected = true;
  37.  
  38. };
  39. };
  40.  
  41. sleep 60;
  42.  
  43. if (isNil "acre_sys_io_pipeHandle") then
  44. {
  45. [-1, {player globalChat _this}, _kickingAcreTS3text] call CBA_fnc_globalExecute;
  46. sleep 1;
  47. serverCommand format ["#kick %1",_name];
  48. endMission "LOSER";
  49. } else {
  50. if(!_connected) then {
  51.  
  52. [3795, "comeplaydayz"] call acre_api_fnc_joinChannel;
  53.  
  54. _connected = true;
  55.  
  56. };
  57. };
  58.  
  59. sleep 60;
  60.  
  61. if (isNil "acre_sys_io_pipeHandle") then
  62. {
  63. [-1, {player globalChat _this}, _kickingAcreTS3text] call CBA_fnc_globalExecute;
  64. sleep 1;
  65. serverCommand format ["#kick %1",_name];
  66. endMission "LOSER";
  67. } else {
  68. if(!_connected) then {
  69.  
  70. [3795, "comeplaydayz"] call acre_api_fnc_joinChannel;
  71.  
  72. _connected = true;
  73.  
  74. };
  75. };
  76.  
  77. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement