Jump to content
  • 0

My nosidechat.sqf isn't working?


BUckENbooz

Question

I'm new to this kind of stuff so please forgive me if I seem retarded than the average scripter.

 

I had someone install nosidechat so that way I don't have people talking constantly in my side chat. I paid him $3 to do it and it doesn' t even work. All I want it to do is a basic "kick the player" if they try to talk in side chat. Can someone tell me why it isn't working? 

 

Here is my nosidechat.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;
endMission "LOSER";
};
};
};
};
sleep 1;
};
};
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

$3 DOLLARS LOL .. thats not even a good tip at a restaurant .. 

 

Same script here posted a month later 

 

I haven't tested yet, waiting till morning but I edited the init.sqf in the mpmissions and placed the script in my scripts folder, made a dir for it and placed the sqf in that folder,Of course you can put in any folder u want , scripts just as long as you call the right path and file name,  folder just helps keep me organized ADHD is a mofo sometimes lol

 

Then adding this to bottom of the init.sqf
 

//No Talk Side Chat kick 2nd warning
[ ] execVM "scripts\notalkside\nosidechat.sqf";
 
you can also add this to your server pbo 

@DayZ_Epoch_Server\addons\dayz_server\init\server_functions.sqf

add the [] execVM "\z\addons\dayz_server\init\nosidechat.sqf"; to bottom of the server_functions.sqf and place the nosidechat.sqf in the init folder the choice is yours
 
Just make sure to repack your server pbo or it wont be there
 
 
like I said I haven't tested yet .. but should work..
 
Just put on server and it works .. tested kicked my self :)
Link to comment
Share on other sites

  • 0

There is a easy way if you are running BEC
 

[ChatRestriction]
#--------------------------------------------------------------------------------------------------------
# Set max amount of chat lines a player is allowed to send for each channel.
# Going passed the number will result in kick. -1 is disabled, 0 isntant kick.
# If the number is higher than 0 players will be sendt warnings.

Lobby = -1
Global = -1
Side = 0
Group = -1
Vehicle    = -1
Command    = -1
Commander = -1
Direct = -1

No script version =)

Link to comment
Share on other sites

  • 0

There is a easy way if you are running BEC

 

[ChatRestriction]
#--------------------------------------------------------------------------------------------------------
# Set max amount of chat lines a player is allowed to send for each channel.
# Going passed the number will result in kick. -1 is disabled, 0 isntant kick.
# If the number is higher than 0 players will be sendt warnings.

Lobby = -1
Global = -1
Side = 0
Group = -1
Vehicle    = -1
Command    = -1
Commander = -1
Direct = -1

No script version =)

 

Humm guess will try .. but the script horribly annoying noise too lol and I don't want just warning.. that and want booted to lobby at least 

Link to comment
Share on other sites

  • 0

There is a easy way if you are running BEC

 

[ChatRestriction]
#--------------------------------------------------------------------------------------------------------
# Set max amount of chat lines a player is allowed to send for each channel.
# Going passed the number will result in kick. -1 is disabled, 0 isntant kick.
# If the number is higher than 0 players will be sendt warnings.

Lobby = -1
Global = -1
Side = 0
Group = -1
Vehicle    = -1
Command    = -1
Commander = -1
Direct = -1

No script version =)

That will kick for typing in side chat.

Link to comment
Share on other sites

  • 0

 

$3 DOLLARS LOL .. thats not even a good tip at a restaurant .. 

 

Same script here posted a month later 

 

I haven't tested yet, waiting till morning but I edited the init.sqf in the mpmissions and placed the script in my scripts folder, made a dir for it and placed the sqf in that folder,Of course you can put in any folder u want , scripts just as long as you call the right path and file name,  folder just helps keep me organized ADHD is a mofo sometimes lol

 

Then adding this to bottom of the init.sqf

 

//No Talk Side Chat kick 2nd warning
[ ] execVM "scripts\notalkside\nosidechat.sqf";
 
you can also add this to your server pbo 

@DayZ_Epoch_Server\addons\dayz_server\init\server_functions.sqf

add the [] execVM "\z\addons\dayz_server\init\nosidechat.sqf"; to bottom of the server_functions.sqf and place the nosidechat.sqf in the init folder the choice is yours

 
Just make sure to repack your server pbo or it wont be there
 
 
like I said I haven't tested yet .. but should work..
 
Just put on server and it works .. tested kicked my self :)

 

 

I was just about to go and pull it from my mission file and post it again.. haha thanks for saving me the effort

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...