Simple Ping System

=RK=MarineForce

  • Sr. Member
  • WAR IS HELL!
  • Posts: 475
Simple Ping System
«  »Last edited
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
Try to UnderStand ME!

Shy

  • Jr. Member
  • Don't dare to mess
  • Posts: 82
Re: Simple Ping System
« Reply #1,  »Last edited
Hmm. great. The warning shouldn't be sent after 3 seconds. Should be sent after every 1/2 mint btw.
It also contains wrong parameters(spaces) in some lines ( in function)

It's going to give you a lot of errors.

Gitobaloch

  • Full Member
  • Posts: 103
Developer of Great VFS!


free png image com

Shy

  • Jr. Member
  • Don't dare to mess
  • Posts: 82

Gitobaloch

  • Full Member
  • Posts: 103
Developer of Great VFS!


free png image com

Saiyan Attack

  • Jr. Member
  • [KoF]Killer
  • Posts: 72
Re: Simple Ping System
« Reply #6,  »
Instead of soo sooo many warning u can simply put message

Message(" " + noobmaster6162 + " " + player.Name + " WARNED PING LIMIT ("+stats[user.id].warning+"/8) ");

KX

  • Newbie
  • Posts: 12