Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
My frames have never & I mean NEVER approched 10 FPS in the most laggy of servers, that is why I am suggesting a range of 0-6.What about when someone has a lag spike.
the way you worded your first post makes it seem like if I was rolling with 58 fps and dropped to 52 i'd get banned.My frames have never & I mean NEVER approched 10 FPS in the most laggy of servers, that is why I am suggesting a range of 0-6.
I average about 30-40 on most servers but when you first join fps tends to be low for a few seconds and at random points so this might ban more legit players than hackers.My frames have never & I mean NEVER approched 10 FPS in the most laggy of servers, that is why I am suggesting a range of 0-6.
I average about 30-40 on most servers but when you first join fps tends to be low for a few seconds and at random points so this might ban more legit players than hackers.
i have a moderately decent computer but an old graphics card and am usually around 25-30 fps. It does drop to 12-15 if I drive through a city with zombies spawned. and it gets barely playable at 12fps. So kicking a player with < 6fps would be doing them a favor anywaysMy frames have never & I mean NEVER approched 10 FPS in the most laggy of servers, that is why I am suggesting a range of 0-6.
speedcheck = true;
while {speedcheck} do {
FPS = round(diag_fps);
if (FPS < 6) then {
//KICK PLAYER CODE HERE
};
};
while {true} do {
FPS = round(diag_fps);
if (FPS < 6) then {
LowFPS = true;
}else{
LowFPS = false;
};
sleep 10; // wait 10 seconds in case its a spike
if (LowFPS)then {
player setdamage 1; //kill offending player
};
};
@CraniX this may work (i saw your code and comment and modified mine
Code:while {true} do { FPS = round(diag_fps); if (FPS < 6) then { LowFPS = true; }else{ LowFPS = false; }; sleep 10; // wait 10 seconds in case its a spike if (LowFPS)then { player setdamage 1; //kill offending player }; };
use the same way you would the debug monitor ( or even put it in your debug monitor code
UNTESTED
EDIT: Change code slightly
while {true} do {
if ( ( round(diag_fps)) < 6) then {
sleep 10; // wait 10 seconds in case its a spike
if ( ( round(diag_fps)) < 6)then {
player setdamage 1; //kill offending player
};
};
};
while {true} do {
_FPS = round(diag_fps);
if (_FPS < 6) then {
PVAHR_ = 'Kick';
publicVariableClient "PVAHR_";//Kicks Player
}else{
sleep 10; // wait 10 seconds in case its a spike
};
};
//Check if player is teleporting or 'Speedhacking'
while{true} do { //Open Loop
_getpos = getpos player; //Get player position.
uisleep 1.5; //Wait 1.5 seconds/
_distance = player distance _getpos; //Get the distance between the current position and the last position.
if (_distance > 40 ) then { //Has the player moved 40 meters within one and a half seconds?
PVAHR_ = 'Kick';
publicVariableClient "PVAHR_";//Kick Player
};//End IF
};//Close Loop
while{true} do { //Open Loop
_getpos = getpos player; //Get player position.
uisleep 1.5; //Wait 1.5 seconds/
_distance = player distance _getpos; //Get the distance between the current position and the last position.
if (_distance > 40 ) then { //Has the player moved 40 meters within one and a half seconds?
PVAHR_ = 'Kick';
publicVariableClient "PVAHR_";//Kick Player
};//End IF
};//Close Loop
have to add in a delay to wait until fully spawned in
};while{true} do {
_getpos = getpos player;
uisleep 1.5;
_distance = player distance _getpos;
if (player alive = false) then {
sleep 30;
}else{
(_distance > 40 ) then {
PVAHR_ = 'Kick';
publicVariableClient "PVAHR_";//Kicks Player
};
};
I'm new at this so here it goes.....
Code:};while{true} do { _getpos = getpos player; uisleep 1.5; _distance = player distance _getpos; if (player alive = false) then { sleep 30; }else{ (_distance > 40 ) then { PVAHR_ = 'Kick'; publicVariableClient "PVAHR_";//Kicks Player }; };
if (player alive = false) then {
if !(alive player) then {
while{true} do {
waitUntil { sleep 1; !isNil 'PVDZE_plr_LoginRecord' };
_getpos = getpos player;
uisleep 1.5;
_distance = player distance _getpos;
if (_distance > 40 ) then {
PVAHR_ = 'Kick';
publicVariableClient "PVAHR_";//Kicks Player
};
};