![]() This is usefully if a plug-in stores the pointer to the class and wishes to use it with current data. This method will update the player record with the most current data. The class provides a number of methods for various utility functions int losses The number of deaths the user has had int teamKills The number of team mates the user has killed. int wins The number of kills the user has had. float packetloss The user's current packet loss percentage. int jitter The user's current jitter amount in milliseconds. bz_APIStringList groups The list of groups the user is a member of int lag The user's current lag amount in milliseconds. bool op True if the user is identified as a server operator via /password bool canSpawn True if the user has permissions to spawn (BZFlag 2.99). bool admin Is true by default if user has the BAN permission. bz_ApiString bzID The globally unique ID for authenticated users. bool globalUser True if the user name was authenticated using the global login system as opposed to a local one. Comparable to a user having a "+" in the scoreboard. bool verified True if the user has authenticated with the login system. bool spawned True if the user has spawned and is playing. bz_APIStringList flagHistory A list of strings representing the names of all the flags the player has held, in order from newest to oldest. The actual values outputted by this member can also be clarified on the 5th & 6th pages of the "Help" section in-game. If no flag is being held, this parameter is simply an empty string. The content in parenthesis include a + sign if the flag is a good flag or a - sign if the flag is a bad flag followed by the symbol of the flag. So for example, Narrow is Narrow and Wings is WinGs. The flag code format is a string that looks like "FLag (+FL)" Where letters that make up the flag abbreviation is capitalized. bz_ApiString ipAddress The Internet Protocol v4 address of the connected client bz_ApiString currentFlag The flag code of the flag to give to the player. float lastUpdateTime The server time of the last player update bz_PlayerUpdateState lastKnownState The state record that was last sent bz_PlayerUpdateState currentState (not in 2.4) The predicted state at the current time, representing where the server and all remote users show the player at. bz_eTeamType team The team the player is currently on. bz_ApiString callsign The username/callsign for the player. Int version The version number of this API class int playerID The player ID for the player. Some problems pop up if people use special characters in their names, which may also be a problem in BZFlag_Info.The bz_BasePlayerRecord is an API class that is provided to expose information about a connected player to the plug-in.Ĭlass bz_BasePlayerRecord has the following data members: ![]() ![]() Yes, I know it isn't standards-compliant. ![]() ![]() My list server scanner uses my open-source PHP class set BZFlag_Info, see the help page for info on that. The player lists from leagues update four times a day, and player scores every ten minutes (until I get out of beta) You can see who from what league is online. I would like to incorporate other web20 technologies later on (Time-warp servers, see who was playing in the past). I am also proud of the player searcher, which enables a pageless-submit if you support AJAX (and falls back to web 1.0 if not) The players online chart for the last 24 hours is on the front page, you can see an enlarged version though. This time hosting is generously being provided by Constitution.Įver wanted to know when to catch someone? Here is where to do it. This is the "second return" of, It has been up three times. I have finished most of the features I want to get on the site now. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |