Author Topic:  (Read 205 times)

MarineForce

  • Forum User
  • ****
  • Posts: 39
  • https://youtu.be/xdCct99wlng
    • View Profile
SIMPLE PING SYSTEM
« on: May 28, 2020, 03:06:40 PM »
onPlayerJoin
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
[Elv]Sikhouland

WeHawt!!!

  • Community Admin
  • Forum User
  • *****
  • Posts: 25
    • View Profile
Re: SIMPLE PING SYSTEM
« Reply #1 on: May 28, 2020, 06:50:11 PM »
" + bazi + "
Whats bazi?

vito

  • Forum User
  • ****
  • Posts: 11
    • View Profile
Re: SIMPLE PING SYSTEM
« Reply #2 on: May 28, 2020, 07:01:44 PM »
Code: [Select]
function pinglimit(player){
local player = FindPlayer(player);
if(player.IsSpawned&&(player.Ping > 150)){
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 > 0 || stats[player.ID].warning < 8){
Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT ("+ stats[player.ID].warning +"/8) ");
} else if(stats[player.ID].warning = 8){
Message(" " + bazi + " " + player.Name + "  KICKED DUE TO HAVING PING (8/8)");
KickPlayer(player);
}
}
}
« Last Edit: May 28, 2020, 07:04:04 PM by vito »