Garry's Mod

Garry's Mod

314 个评价
New Scoreboard + Loading players + GeoIP
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
文件大小
发表于
更新日期
803.297 KB
2013 年 10 月 31 日 上午 6:45
2019 年 7 月 6 日 下午 3:42
94 项改动说明 ( 查看 )

订阅以下载
New Scoreboard + Loading players + GeoIP

在 Cédric GÉRILLE [GiletJaune] 的 6 个合集中
The TTT by Mohamed Rachid
39 件物品
Mohamed Rachid's Vehicles Paradize
191 件物品
The DarkRP by Mohamed Rachid
44 件物品
Université Joseph Poireau (serveur)
70 件物品
MR: Serveur Garry's Mod Jeu en 2D
11 件物品
G-1:788429
50 件物品
描述
New social scoreboard, Listing loading players functions, GeoIP library
The GeoIP library and the List of loading players can be used for your own development.
You are free to disable the included scoreboard if you want only Loading players or GeoIP!
The Scoreboard displays players' country.

[curse.com]

Documentation
Administrators and technicians, here is what you need
Developpers, here is what you need

New scoreboard
● Features:
——□ This is a new scoreboard designed to upgrade any generic scoreboard. It has a clear design and it is thought to be very social.
——□ Default language is English, and it is available in French. The translation is automatically selected by client's Garry's Mod interface language.
——□ Displays all players, including players who are loading.
——□ On each player's line, you have the photo, the country flag, the packet loss percentage, the score, the deaths, the ping, the mute state.
——□ The profile photo is a link to the user's profile.
——□ The flag is a button to display user's information: group, life status, interface language, country and region. (To see the region in the GeoIP information, please read the IP2Location section below.)
——□ The gamemode name is a link to the gamemode's website.
——□ The server's name is a link to an URL you set or to the server's group. Please look at documentation.
● It can be used correctly if your gamemode uses the standard scoreboard. It may also be usable in some gamemodes that do not use the default scoreboard, depending on the way it is displayed and used.

Get loading users
● It allows to know the complete list of loading players and every player including loading ones.
● You can use these new functions in your gamemode: player.GetAny() and player.GetLoading(). For players connected since a previous map only, the results will only be correct when the gamemode has finished starting; you can use the property player.AllConnectedLoaded to check if you can trust the result. You can use matching console commands "player_getany" (similar to the command "users") and "player_getloading" to see the results.
● You can call the method element:GetPlayerEnt() on each element of the returned tables. If the player has finished loading it returns the player entity, else it returns nil. You can simply use an IsValid() check on the result.
● You can modify both empty functions player.OnReloadAllConnected() (1 clientside and 1 serverside) in your gamemode. They are called every time a change in the list occurs. For example, the clientside player.OnReloadAllConnected() can be modified to refresh the scoreboard.
● The client gets the full nicknames except after a change, and receives nothing if the changes are only over the 31 first bytes. This is not a problem in the joined scoreboard.

IP2Location
● With no database, the library will use the default IP location database which is now included, based on the DB1-lite database. It is updated every month. This will cause some country names to be displayed differently for a country code that has different country names.
● To make this file fully working (with region and city), you need to download the IP location CSV database.
——□ You can download it at http://lite.ip2location.com/database-ip-country-region-city
——□ Then extract the .CSV file at garrysmod/data/geolocation/IP2LOCATION-LITE-DB3.CSV
——□ Do not forget to update it every month!
● The DB3-lite CSV file is suggested, but you can also use the standard DB3 one (not free). The DB1-lite and DB1 (not free) CSV files can also be used but they will not display the region.
● You can use : ulx luarun "print(table.ToString(geoip.GetIpInfo('127.0.0.1'), 'GetIpInfo', true))" in console to test if you can get an IP address (with ULX installed).
● The IP geolocation data is provided by http://www.ip2location.com
热门讨论 查看全部(4)
2
2018 年 1 月 13 日 下午 8:20
置顶: Bug reports
Cédric GÉRILLE [GiletJaune]
61 条留言
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 12 月 7 日 下午 9:17 
Huh, did something change on the default scoreboard? I don't understand what you mean. I barely work on video games anymore. BTW I should update this add-on, the GeoIP base is really out dated now.
Rosie 2023 年 11 月 17 日 上午 10:30 
This is really cool. But can you make it so that it shows Lambda players on the scoreboard like it does on the default?
Cédric GÉRILLE [GiletJaune]  [作者] 2022 年 12 月 28 日 下午 1:38 
Oh wow, you took a very old project out of the ground! Well, you just brought to my knowledge that there is such a function. Well, as you can see I did not even kept going with GeoIP updates, but of course if I was still using GMod then I would make such an update!
Thanks for commenting! 👍
淋一喃 2017 年 7 月 2 日 上午 6:27 
thanks
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 7 月 2 日 上午 6:18 
Okay, upload it somewhere and I'll integrate it.
淋一喃 2017 年 7 月 2 日 上午 5:54 
Hmm,I would like to have your work translated and provided to Chinese players. I've finished the part of chinese. Hope to get the right to publish.:steamhappy:
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 6 月 21 日 上午 9:09 
Hmm, I'm not totally sure. But if the connection between the server and the client loses packets then the value will not be 0.
It's a good piece of information to check whether a user faces a bad connection or simply has a high latency, when the ping is high.
A server under attack will also lose packets for all remote users.
Max The Malinois 2017 年 6 月 21 日 上午 8:37 
What does packet loss percentage mean?
Cédric GÉRILLE [GiletJaune]  [作者] 2017 年 6 月 18 日 下午 9:17 
In garrysmod\cache\srcds, of course.
Sam 2017 年 6 月 18 日 上午 7:56 
Okay so I have removed the addon from the collection, do you have any more information on where the .gma folder is located.