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
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?
Question
C.Peck
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.
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
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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now