Release Ping block 1.3
#1
Kick high pingers requested by @choobie
Add to sv_config.ini
Code:
[Ping] Re-Check=5 //seconds after which ping is checked again MaxPing=200 //Ping limit MaxWarns=5 //Number of warnings followed by a kick UsePermission=true //Use permission plugin to get XUID protected from kick ProtectedXuidKey=Admin_xuids /Key of Permission plugin section with XUID of protected players.Use only when UsePermission is true


Attached Files
.rar   Ping 1.2.rar (Size: 2.53 KB / Downloads: 74)
.rar   Ping.rar (Size: 2.46 KB / Downloads: 67)
.rar   Ping 1.3.rar (Size: 3.1 KB / Downloads: 313)
Reply

#2
(10-01-2012, 12:30)archit Wrote: Kick high pingers requested by @choobie
Add to sv_config.ini
Code:
[Ping] Re-Check=5 //seconds after which ping is checked again MaxPing=200 //Ping limit MaxWarns=5 //Number of warnings followed by a kick
[spoiler=CODE]
Code:
using System; using System.Collections.Generic; using Addon; namespace Ping { public class Class1:CPlugin { System.Diagnostics.Stopwatch Time; int Seconds = 10; public override void OnServerLoad() { Time = new System.Diagnostics.Stopwatch(); ServerPrint("Ping plugin by Archit loaded!"); Time.Start(); Seconds=int.Parse(GetServerCFG("Ping", "Re-Check", "10")); } Dictionary<int, int> Warns = new Dictionary<int, int>(); public override void OnPlayerDisconnect(ServerClient Client) { if (Warns.ContainsKey(Client.ClientNum)) { Warns.Remove(Client.ClientNum); } } public override void OnServerFrame() { if (GetClients() != null && Time.Elapsed.Seconds == Seconds) { Time.Reset(); Time.Start(); foreach (ServerClient Client in GetClients()) { if (Client.Ping > int.Parse(GetServerCFG("Ping", "MaxPing", "300"))) { if (!Warns.ContainsKey(Client.ClientNum)) { Warns.Add(Client.ClientNum, 1); } else if (Warns.ContainsKey(Client.ClientNum) && Warns[Client.ClientNum] < int.Parse(GetServerCFG("Ping", "MaxWarns", "5"))) { Warns[Client.ClientNum]++; TellClient(Client.ClientNum, "Reduce your ping else you will be kicked", true); } else if (Warns[Client.ClientNum] == int.Parse(GetServerCFG("Ping", "MaxWarns", "5"))) { ServerCommand("dropclient " + Client.ClientNum + " \"You have been kicked because of excess ping\""); Warns.Remove(Client.ClientNum); } } } } } } }

Working now!Big Grin
Thanks alot. Awesome!
[RBC] Choobie

Ratbag Clan

Reply

#3
archit, you can remove the flood in the console?

Code:
Client 3 is not active Client 17 is not active Client 16 is not active Client 15 is not active Client 14 is not active Client 13 is not active Client 12 is not active Client 11 is not active Client 10 is not active Client 9 is not active Client 8 is not active Client 7 is not active Client 6 is not active
Reply

#4
My plugin doesn't print anything to console except the start up line
Reply

#5
Hi

When map changes some players are kicked at random. Not every map change just like I said at random.Even though their pings are below 100.
Using your default settings in config. also tried setting re-check time higher but still did it.

[Ping]
Re-Check=5
//seconds after which ping is checked again
MaxPing=200
//Ping limit
MaxWarns=5
//Number of warnings followed by a kick
[RBC] Choobie

Ratbag Clan

Reply

#6
(10-02-2012, 06:51)choobie Wrote: Hi

When map changes some players are kicked at random.
Even though there pings are below 100.
Using your default settings in config. also tried setting re-check time higher but still did it.

[Ping]
Re-Check=5
//seconds after which ping is checked again
MaxPing=200
//Ping limit
MaxWarns=5
//Number of warnings followed by a kick
That's because sometimes when you get connected your ping spikes to around 200+ more than your usual ping. (100 + 200 = 300)

(10-01-2012, 15:02)korsika Wrote: archit, you can remove the flood in the console?

Code:
Client 3 is not active Client 17 is not active Client 16 is not active Client 15 is not active Client 14 is not active Client 13 is not active Client 12 is not active Client 11 is not active Client 10 is not active Client 9 is not active Client 8 is not active Client 7 is not active Client 6 is not active
It's still active after kick wat ._.?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#7
(10-02-2012, 06:51)choobie Wrote: Hi

When map changes some players are kicked at random.
Even though there pings are below 100.
Using your default settings in config. also tried setting re-check time higher but still did it.

[Ping]
Re-Check=5
//seconds after which ping is checked again
MaxPing=200
//Ping limit
MaxWarns=5
//Number of warnings followed by a kick
Plugin updated but couldn't test as I can't recreate random kicking
Reply

#8
v 1.2 no messages no warnings.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#9
checked on Addon 2-07-2012 V1.206 1.4.382 is not compatible, flood console, but works.
difficult to connect to the server at the first attempt.

[Image: NOwr2.png]

(10-02-2012, 07:53)hillbilly Wrote: v 1.2 no messages no warnings.
check this


Attached Files
.rar   Ping_1.2.rar (Size: 2.48 KB / Downloads: 46)
Reply

#10
(10-02-2012, 10:19)korsika Wrote: checked on Addon 2-07-2012 V1.206 1.4.382 is not compatible, flood console, but works.
difficult to connect to the server at the first attempt.

[Image: NOwr2.png]

(10-02-2012, 07:53)hillbilly Wrote: v 1.2 no messages no warnings.
check this

Check your plugins folder my plugin can't flood the console
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Ping Warn Plugin v1.1 master131 28 29,341 07-10-2013, 09:34
Last Post: spike17
  ping warn 1.1, I passed from the server kpoviv 1 3,204 12-13-2012, 09:47
Last Post: XxBRxX
  Black Ops II IWI block decompression/decryption function kokole 7 7,384 12-07-2012, 22:53
Last Post: master131
  [Request] Anti block Plugin | Infected Kasperle 2 3,975 10-06-2012, 18:41
Last Post: DidUknowiPwn
  High Ping block still badly needed here choobie 6 5,673 10-01-2012, 12:22
Last Post: archit
  High ping blocker choobie 5 5,659 08-21-2012, 15:16
Last Post: choobie
  DLL PING WARN1.1 kpoviv 5 6,239 07-17-2012, 20:28
Last Post: narkos
  DLL PING WARN1.1 kpoviv 2 3,249 07-07-2012, 23:39
Last Post: JariZ
  [Request] Ping Text visible plugin b00mmolo 2 3,902 05-14-2012, 16:23
Last Post: b00mmolo
Lightbulb [Release] Core Ping plugin [updated to v1.0.2] Nerus 11 11,097 04-18-2012, 11:29
Last Post: Nerus

Forum Jump:


Users browsing this thread:

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.