Jump to content
  • 0

Help setting public variable restriction


C.Peck

Question

I'm trying to modify a script that kills players for talking in sidechat. I don't want that, I want to kick them from the server. I read about using a public variable and the battle eye filters to do so.

				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";
						_pos = position Player;
						_name = name Player;
						kickPlayer = [_name,_pos];
						publicVariable "kickPlayer";

This is the part of the script that handles the punishment. I have the "endMission" line commented out, that does kick players back to the lobby just fine, but I want to kick them. So i added "kickPlayer" to my publicvariable.txt file 

//new
5 "" !"PVDZE_" !"norrn" !"usec" !="remExField" !="remExFP" !="drn_AskServerDynamicWeatherEventArgs" !="BIS_effects_gepv" !="PVDZ_Server_Simulation" !="EAT_toClient" !="usageLogger" !="useBroadcaster" !="EAT_baseExporter" !="EAT_teleportFixServer" !="EAT_teleportFixClient" !="EAT_SetDateServer" !="EAT_SetDateClient" !="EAT_SetOvercastServer" !="EAT_SetOvercastClient" !="EAT_SetFogServer" !="EAT_SetFogClient" !="currentInvites"
5 "remExFP" !="\"remExFP\" = \[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]" !"\[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]"
5 "kickPlayer"

But this doesn't do anything. I'm not getting kicked when I test it, I get the message saying "we warned you" and thats it. Anybody got any ideas what I'm doing wrong?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...