Jump to content
  • 0

global chat voice kick


jinska

Question

22 answers to this question

Recommended Posts

  • 0

you dont need to disable infistar as you can turn off the kick for voip however i dont know how gtx have it set up or if they are even allowed to put it on all there servers.

 

to disable it have a look for AHconfig.sqf

Link to comment
Share on other sites

  • 0

Any way to do this without a custom antihack? I refuse to use those programs. Is there a regular server script that can do this? I remember playing one of the dayz mods that causes a horrible screeching noise when you try talking on side chat. What about that?

[] spawn {
	disableSerialization;
	DS_really_loud_sounds = {[60,15] call fnc_usec_pitchWhine;for "_i" from 1 to 15 do {playSound format ["%1",_this select 0];};};
	DS_double_cut = {1 cutText [format ["%1",_this select 0],"PLAIN DOWN"];2 cutText [format ["%1",_this select 0],"PLAIN"];};
	DS_slap_them = {_randomnr = [2,-1] call BIS_fnc_selectRandom;(vehicle player) SetVelocity [_randomnr * random (4) * cos getdir (vehicle player), _randomnr * random (4) * cos getdir (vehicle player), random (4)];};
	while {true} do {
		waitUntil {sleep 1;((!isNull findDisplay 63) && (!isNull findDisplay 55))};
		if (ctrlText ((findDisplay 55) displayCtrl 101) == "\ca\ui\textures\mikrak.paa") then {
			if (ctrlText ((findDisplay 63) displayCtrl 101) == localize "STR_SIDE_CHANNEL") then {
				[] spawn {
					if (isNil "reset_timer") then {
						reset_timer = true;
						sleep 90;
						disconnect_me = nil;
						warn_one = nil;
						warn_last = nil;
						reset_timer = nil;
					};
				};
				if (isNil "disconnect_me") then {disconnect_me = 0;} else {disconnect_me = disconnect_me + 1;};
				if (disconnect_me == 0) then {
					if (isNil "warn_one") then {
						warn_one = true;
						systemChat ("Please do not use voice on sidechat, this is your first and final warning.");
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["NO VOICE ON SIDE"] spawn DS_double_cut;
					};
				};
				if (disconnect_me >= 3) then {
					if (isNil "warn_last") then {
						warn_last = true;
						playMusic ["PitchWhine",0];
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["We warned you..."] spawn DS_double_cut;
						sleep 0.5;
						1 fademusic 10;
						1 fadesound 10;
						player setDamage 1;
						};
				};
			};
		};
		sleep 1;
	};
};
if (!isDedicated) then {
	if (isClass (configFile >> "CfgBuildingLootNamalsk")) then {
		waitUntil {!isNil "dayz_loadScreenMsg"};
		dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
		
		_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
		_playerMonitor =  [] execVM "\nst\ns_dayz\code\system\player_monitor.sqf";
                //sidechat death		
               [] execVM "nosidechat.sqf";
	} else {
		endLoadingScreen;

This kills a person talking on sidechat twice for over 1.5 seconds

Link to comment
Share on other sites

  • 0

i have a little question....Can you customize the script so?

 

1. Warning Chat say No Voice

2. Warning Knockout (hourglass 5 min)

3. Warning (Kick).

 

can you help me?

 

I could, but refuse to edit in a 5 minute timer, for obvious reasons

Link to comment
Share on other sites

  • 0
[] spawn {
	disableSerialization;
	DS_really_loud_sounds = {[60,15] call fnc_usec_pitchWhine;for "_i" from 1 to 15 do {playSound format ["%1",_this select 0];};};
	DS_double_cut = {1 cutText [format ["%1",_this select 0],"PLAIN DOWN"];2 cutText [format ["%1",_this select 0],"PLAIN"];};
	DS_slap_them = {_randomnr = [2,-1] call BIS_fnc_selectRandom;(vehicle player) SetVelocity [_randomnr * random (4) * cos getdir (vehicle player), _randomnr * random (4) * cos getdir (vehicle player), random (4)];};
	while {true} do {
		waitUntil {sleep 1;((!isNull findDisplay 63) && (!isNull findDisplay 55))};
		if (ctrlText ((findDisplay 55) displayCtrl 101) == "\ca\ui\textures\mikrak.paa") then {
			if (ctrlText ((findDisplay 63) displayCtrl 101) == localize "STR_SIDE_CHANNEL") then {
				[] spawn {
					if (isNil "reset_timer") then {
						reset_timer = true;
						sleep 90;
						disconnect_me = nil;
						warn_one = nil;
						warn_last = nil;
						reset_timer = nil;
					};
				};
				if (isNil "disconnect_me") then {disconnect_me = 0;} else {disconnect_me = disconnect_me + 1;};
				if (disconnect_me == 0) then {
					if (isNil "warn_one") then {
						warn_one = true;
						systemChat ("Please do not use voice on sidechat, this is your first and final warning.");
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["NO VOICE ON SIDE"] spawn DS_double_cut;
					};
				};
				if (disconnect_me >= 3) then {
					if (isNil "warn_last") then {
						warn_last = true;
						playMusic ["PitchWhine",0];
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["We warned you..."] spawn DS_double_cut;
						sleep 0.5;
						1 fademusic 10;
						1 fadesound 10;
						player setDamage 1;
						};
				};
			};
		};
		sleep 1;
	};
};
if (!isDedicated) then {
	if (isClass (configFile >> "CfgBuildingLootNamalsk")) then {
		waitUntil {!isNil "dayz_loadScreenMsg"};
		dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
		
		_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
		_playerMonitor =  [] execVM "\nst\ns_dayz\code\system\player_monitor.sqf";
                //sidechat death		
               [] execVM "nosidechat.sqf";
	} else {
		endLoadingScreen;

This kills a person talking on sidechat twice for over 1.5 seconds

 

 

hey can you please tell me where to put this? does the second part go into the init.sqf file? and the first one into the nosidechat.sqf ?

Link to comment
Share on other sites

  • 0

hey can you please tell me where to put this? does the second part go into the init.sqf file? and the first one into the nosidechat.sqf ?

 

create a sqf (novoice.sqf) or yourtext.sqf paste this in your sqf.

[] spawn {
	disableSerialization;
	DS_really_loud_sounds = {[60,15] call fnc_usec_pitchWhine;for "_i" from 1 to 15 do {playSound format ["%1",_this select 0];};};
	DS_double_cut = {1 cutText [format ["%1",_this select 0],"PLAIN DOWN"];2 cutText [format ["%1",_this select 0],"PLAIN"];};
	DS_slap_them = {_randomnr = [2,-1] call BIS_fnc_selectRandom;(vehicle player) SetVelocity [_randomnr * random (4) * cos getdir (vehicle player), _randomnr * random (4) * cos getdir (vehicle player), random (4)];};
	while {true} do {
		waitUntil {sleep 1;((!isNull findDisplay 63) && (!isNull findDisplay 55))};
		if (ctrlText ((findDisplay 55) displayCtrl 101) == "\ca\ui\textures\mikrak.paa") then {
			if (ctrlText ((findDisplay 63) displayCtrl 101) == localize "STR_SIDE_CHANNEL") then {
				[] spawn {
					if (isNil "reset_timer") then {
						reset_timer = true;
						sleep 90;
						disconnect_me = nil;
						warn_one = nil;
						warn_last = nil;
						reset_timer = nil;
					};
				};
				if (isNil "disconnect_me") then {disconnect_me = 0;} else {disconnect_me = disconnect_me + 1;};
				if (disconnect_me == 0) then {
					if (isNil "warn_one") then {
						warn_one = true;
						systemChat ("Please do not use voice on sidechat, this is your first and final warning.");
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["NO VOICE ON SIDE"] spawn DS_double_cut;
					};
				};
				if (disconnect_me >= 3) then {
					if (isNil "warn_last") then {
						warn_last = true;
						playMusic ["PitchWhine",0];
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["We warned you..."] spawn DS_double_cut;
						sleep 0.5;
						1 fademusic 10;
						1 fadesound 10;
						player setDamage 1;
						};
				};
			};
		};
		sleep 1;
	};
};

open init.sqf

 

and paste this: [] execVM "yourtext.sqf" in your init.sqf,

Link to comment
Share on other sites

  • 0

create a sqf (novoice.sqf) or yourtext.sqf paste this in your sqf.

[] spawn {
	disableSerialization;
	DS_really_loud_sounds = {[60,15] call fnc_usec_pitchWhine;for "_i" from 1 to 15 do {playSound format ["%1",_this select 0];};};
	DS_double_cut = {1 cutText [format ["%1",_this select 0],"PLAIN DOWN"];2 cutText [format ["%1",_this select 0],"PLAIN"];};
	DS_slap_them = {_randomnr = [2,-1] call BIS_fnc_selectRandom;(vehicle player) SetVelocity [_randomnr * random (4) * cos getdir (vehicle player), _randomnr * random (4) * cos getdir (vehicle player), random (4)];};
	while {true} do {
		waitUntil {sleep 1;((!isNull findDisplay 63) && (!isNull findDisplay 55))};
		if (ctrlText ((findDisplay 55) displayCtrl 101) == "\ca\ui\textures\mikrak.paa") then {
			if (ctrlText ((findDisplay 63) displayCtrl 101) == localize "STR_SIDE_CHANNEL") then {
				[] spawn {
					if (isNil "reset_timer") then {
						reset_timer = true;
						sleep 90;
						disconnect_me = nil;
						warn_one = nil;
						warn_last = nil;
						reset_timer = nil;
					};
				};
				if (isNil "disconnect_me") then {disconnect_me = 0;} else {disconnect_me = disconnect_me + 1;};
				if (disconnect_me == 0) then {
					if (isNil "warn_one") then {
						warn_one = true;
						systemChat ("Please do not use voice on sidechat, this is your first and final warning.");
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["NO VOICE ON SIDE"] spawn DS_double_cut;
					};
				};
				if (disconnect_me >= 3) then {
					if (isNil "warn_last") then {
						warn_last = true;
						playMusic ["PitchWhine",0];
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["We warned you..."] spawn DS_double_cut;
						sleep 0.5;
						1 fademusic 10;
						1 fadesound 10;
						player setDamage 1;
						};
				};
			};
		};
		sleep 1;
	};
};

open init.sqf

 

and paste this: [] execVM "yourtext.sqf" in your init.sqf,

thank you

Link to comment
Share on other sites

  • 0
[] spawn {
	disableSerialization;
	DS_really_loud_sounds = {[60,15] call fnc_usec_pitchWhine;for "_i" from 1 to 15 do {playSound format ["%1",_this select 0];};};
	DS_double_cut = {1 cutText [format ["%1",_this select 0],"PLAIN DOWN"];2 cutText [format ["%1",_this select 0],"PLAIN"];};
	DS_slap_them = {_randomnr = [2,-1] call BIS_fnc_selectRandom;(vehicle player) SetVelocity [_randomnr * random (4) * cos getdir (vehicle player), _randomnr * random (4) * cos getdir (vehicle player), random (4)];};
	while {true} do {
		waitUntil {sleep 1;((!isNull findDisplay 63) && (!isNull findDisplay 55))};
		if (ctrlText ((findDisplay 55) displayCtrl 101) == "\ca\ui\textures\mikrak.paa") then {
			if (ctrlText ((findDisplay 63) displayCtrl 101) == localize "STR_SIDE_CHANNEL") then {
				[] spawn {
					if (isNil "reset_timer") then {
						reset_timer = true;
						sleep 90;
						disconnect_me = nil;
						warn_one = nil;
						warn_last = nil;
						reset_timer = nil;
					};
				};
				if (isNil "disconnect_me") then {disconnect_me = 0;} else {disconnect_me = disconnect_me + 1;};
				if (disconnect_me == 0) then {
					if (isNil "warn_one") then {
						warn_one = true;
						systemChat ("Please do not use voice on sidechat, this is your first and final warning.");
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["NO VOICE ON SIDE"] spawn DS_double_cut;
					};
				};
				if (disconnect_me >= 3) then {
					if (isNil "warn_last") then {
						warn_last = true;
						playMusic ["PitchWhine",0];
						[] spawn DS_slap_them;
						["beat04"] spawn DS_really_loud_sounds;
						["We warned you..."] spawn DS_double_cut;
						sleep 0.5;
						1 fademusic 10;
						1 fadesound 10;
						player setDamage 1;
						};
				};
			};
		};
		sleep 1;
	};
};
if (!isDedicated) then {
	if (isClass (configFile >> "CfgBuildingLootNamalsk")) then {
		waitUntil {!isNil "dayz_loadScreenMsg"};
		dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
		
		_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
		_playerMonitor =  [] execVM "\nst\ns_dayz\code\system\player_monitor.sqf";
                //sidechat death		
               [] execVM "nosidechat.sqf";
	} else {
		endLoadingScreen;

This kills a person talking on sidechat twice for over 1.5 seconds

 

 

A Bit Extreme :)

Link to comment
Share on other sites

  • 0

I found a solution for the kill instead of kick problem.

if (disconnect_me >= 3) then {
 if (isNil "warn_last") then {
     warn_last = true;
     playMusic ["PitchWhine",0];
     [] spawn DS_slap_them;
     ["beat04"] spawn DS_really_loud_sounds;
     ["WE WARNED YOU..."] spawn DS_double_cut;
     1 fademusic 10;
     1 fadesound 10;
     disableUserInput true;
     startLoadingScreen ["You are being disconnected", "DayZ_loadingScreen"];
     progressLoadingScreen 0.6;sleep 2;["All_Haha"] spawn DS_really_loud_sounds;
     progressLoadingScreen 0.8;sleep 2.25;
     progressLoadingScreen 1.0;sleep 2;["All_Haha"] spawn DS_really_loud_sounds;
     endLoadingScreen;sleep 0.5;
     disableUserInput false;
     endMission "LOSER";
  };
};
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...