Code for Weapon/Gui-Script -System/Lag:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
setTimer( 0.1 ); // Start the timeout
}
function onTimeOut()
{
client.serverLast = serverr.real_time; // Set the time we think it is
setTimer( 0.1 ); // Repeat the timeout
}
Code for wNPC LagSystem:
PHP Code:
function onCreated()
{
setTimer( .1 ); // Start the timeout
}
function onTimeOut()
{
serverr.real_time = timevar2; // Set the real time
setTimer( .1 ); // Repeat the timeout
}
Code for script class_lag:
PHP Code:
public function isPlayerLagging( acc, a ) // acc = account, a = margin for lagging; default is 1
{
temp.i = findPlayer( acc ); // Find the player
if ( temp.i == NULL ) // Player not online
{
return true; // No player, must be lagging!
}
if ( a < 0 || a == NULL ) // If a is less than zero, or not set
{
a = 1; // Set it to 1, which is the default
}
// Is it in the correct margin?
return ! ( temp.i.client.serverLast in | serverr.real_time - a, serverr.real_time | );
}
public function isLagging( lag, a ) // lag = client.serverLast, a = margin for lagging; default is 1
{
if ( a < 0 || a == NULL ) // If a is less than zero, or not set
{
a = 1; // Set it to 1, which is the default
}
// Is it in the correct margin?
return ! ( lag in | serverr.real_time - a, serverr.real_time | );
}
This could be used to simply kick people out if they're 1 second behind, which, really, if you're doing it in under a second, you really don't have enough time to abuse the glitch (I'm assuming the monster would attack you while you just stood there, and party members would kill them while you were on escape?).
I did test this, and it did work. Also worked with stopping modem taping.