Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. []spawn{
  2. private ["_ServerName","_ChannelName","_TSPluginEnabled"];
  3. sleep 15;
  4. while {true} do {
  5. _Error = false;
  6. _ServerName = call TFAR_fnc_getTeamSpeakServerName;
  7. _ChannelName = call TFAR_fnc_getTeamSpeakChannelName;
  8. _TSPluginEnabled = call TFAR_fnc_isTeamSpeakPluginEnabled;;
  9. _AdminState = (life_adminlvl > 0);
  10. _WhiteListedChannels = ["InGameA3"];
  11.  
  12. if (!_AdminState && _ServerName != "Global Task Force Offical Teamspeak")then{_Wrong = true;};
  13. if (!_AdminState && !(_ChannelName in _WhiteListedChannels))then{_Wrong = true;};
  14. if (!_AdminState && !_TSPluginEnabled)then{_Wrong = true;};
  15.  
  16. if(_Error) then{
  17. cutText["Please join the correct TS/Channel/Enable The Plugin","BLACK FADED"];
  18. }else{
  19. cutText["","PLAIN"];
  20. sleep 5;
  21. };
  22. };
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement