documentation
download & extend
community & support
B3 hosting
May 24, 2012, 12:55:20 AM
Home
Features
Get Started
Supported Games
Forums
Help
Search
Tags
Groupware
Login
Register
Activation Mail
It appears you have not registered with our community. To register please click here ...
You are here:
Big Brother Bot Forum
Community Developers
Plugin Developers
Select by ping
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Select by ping (Read 261 times)
Spoon
Sr. Member
OS: Windows
Type: Owner dedicated server(s)
Gameservers:
CoD4
Posts: 180
Offline
Select by ping
«
on:
January 31, 2012, 10:56:27 AM »
Is there anyway i could select some1 with the highest ping but the user has to be under a certain level?
Logged
xlr8or
[ www.xlrstats.com ]
Project Lead
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
CoD, CoD2, CoD5, UrT
Posts: 2022
Offline
Support Specialty:
B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
Re: Select by ping
«
Reply #1 on:
January 31, 2012, 11:16:20 AM »
I guess you would have to take a look at the pingwatch plugin for a good start.
I would create an array with cid and ping values where userlevel is below your threshold, sort them from high to low and the first in the array is the one you are searching for.
Logged
Github repo
-
Groupware
Spoon
Sr. Member
OS: Windows
Type: Owner dedicated server(s)
Gameservers:
CoD4
Posts: 180
Offline
Re: Select by ping
«
Reply #2 on:
January 31, 2012, 11:19:03 AM »
would this work for getting the ping of players with levels within 0-1
Code:
clients = self.console.clients.getClientsByLevel(min=0, max=1)
self.console.getPlayerPings(clients).items():
Logged
Tags:
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News (Read Only)
===> News Archive
===> Website News
=> General Discussion
===> Servers
=> Shared Services
-----------------------------
Support Forums
-----------------------------
=> Support Instructions
=> Installation Support
=> General Usage Support
=> Game specific Support
===> Battle Field 3
=====> BF3/B3 beta board
===> Battle Field Bad Company 2
===> Call of Duty series
=====> CoD, CoD:UO, CoD2
=====> Call of Duty 4 (Modern Warfare)
=====> Call of Duty 5 (World at War)
=====> Call of Duty 6 (Modern Warfare 2)
=====> Call of Duty 7 (Black Ops)
=======> AlterOps
===> Frontlines, Fuel of War
===> Enemy Territory
===> Homefront
===> Medal of Honor 2010
===> Open Arena
===> Red Orchestra 2
===> Smokin' Guns
===> Soldier of Fortune 2
===> Urban Terror
===> World of Padman
===> Other games
-----------------------------
Add-Ons
-----------------------------
=> Plugins Discussion
===> Plugin Releases!
===> Plugins by xlr8or
===> Plugins by Courgette
===> Plugins by Freelander
===> Plugins by Bakes
===> Plugins by Ismael
===> Plugins by flinkaflenkaflrsk
===> Plugins by Anubis
===> Plugins by Spoon
===> Plugins by PtitBigorneau
===> Plugins by BlackMamba
===> Plugins by Beber888
===> Plugins by grosbedo
=> XLRstats
===> Weaponmodifiers
=> Echelon
===> Echelon version 2
=> Configurations
=> Installers
-----------------------------
Community Developers
-----------------------------
=> Plugin Developers
=> The Code Bin
Rate this page +1 at Google Search
Web Toolbar by Wibiya
SimplePortal 2.3.1 © 2008-2009, SimplePortal