Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- []spawn{
- private ["_ServerName","_ChannelName","_TSPluginEnabled"];
- sleep 15;
- while {true} do {
- _Error = false;
- _ServerName = call TFAR_fnc_getTeamSpeakServerName;
- _ChannelName = call TFAR_fnc_getTeamSpeakChannelName;
- _TSPluginEnabled = call TFAR_fnc_isTeamSpeakPluginEnabled;;
- _AdminState = (life_adminlvl > 0);
- _WhiteListedChannels = ["InGameA3"];
- if (!_AdminState && _ServerName != "Global Task Force Offical Teamspeak")then{_Wrong = true;};
- if (!_AdminState && !(_ChannelName in _WhiteListedChannels))then{_Wrong = true;};
- if (!_AdminState && !_TSPluginEnabled)then{_Wrong = true;};
- if(_Error) then{
- cutText["Please join the correct TS/Channel/Enable The Plugin","BLACK FADED"];
- }else{
- cutText["","PLAIN"];
- sleep 5;
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement