onPlayerJoin
you can freeze player too if him ping high or slap or drown . but this system is good. you can also add fps system just add FPS instead of Ping
Code Select
NewTimer( "pinglimit", 3000, 0, player.ID );
Class:Code Select
warning
Code Select
function pinglimit(player)
{
local player = FindPlayer(player);
if(player.IsSpawned)
{
if(player.Ping > 400)
{
player.Pos.z += 5;
stats[player.ID].warning++;
MessagePlayer(" " + bazi + " You've been slapped due to having high ping! ",player);
if(stats[player.ID].warning = 1)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (1/8) ");
if(stats[player.ID].warning = 2)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (2/8) ");
if(stats[player.ID].warning = 3)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (3/8) ");
if(stats[player.ID].warning = 4)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (4/8) ");
if(stats[player.ID].warning = 5)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (5/8) ");
if(stats[player.ID].warning = 6)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (6/8) ");
if(stats[player.ID].warning = 7)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (7/8) ");
if(stats[player.ID].warning = 8)Message(" " + bazi + " " + player.Name + " KICKED DUE TO HAVING PING (8/8)");
if(stats[player.ID].warning = 8)KickPlayer(player);
}
}
}
you can freeze player too if him ping high or slap or drown . but this system is good. you can also add fps system just add FPS instead of Ping