[script] detectclient

3 posts Page 1 of 1
noway
Deuced Up
Posts: 22
Joined: Wed Dec 12, 2012 10:28 am


Simple script to detect what client player is using.
Originally requested here. Some bug fixes and testing was done after that.
Result of detection shown to player on first spawn. This behavior could be changed to something more useful, however.

Available admin commands:
/client_info <#playerid/playername> - get info about what client player is using
/clin - alias of /client_info
Attachments
detectclient.py
License: CC-BY-SA
(5.29 KiB) Downloaded 258 times
Jigsaw
3 Years of Ace of Spades
3 Years of Ace of Spades
Posts: 501
Joined: Fri Sep 27, 2013 11:41 am


cool idea!^^
IAmYourFriend
Global Moderator
Global Moderator
Posts: 102
Joined: Fri Nov 16, 2012 8:58 pm


Great work!

If i see it right, a 0.75 client is the assumed fallback value when no version data is sent. This results in 0.75 being shown as the used client even when running 0.76 (or any other version). In case of using this script on a non-0.75-server i'd suggest to change the fallback number in line 144 accordingly, or rewrite the "formatted_client_info" function to show something like "running Ace of Spades (Voxlap)" without mentioning the client version (or, if even possible, figuring out a version somehow using pyspades internal version infos).

Moved topic over to Approved ‹ Miscellaneous
3 posts Page 1 of 1
Return to “Miscellaneous”

Who is online

Users browsing this forum: No registered users and 1 guest