Page 1 of 1

[script] detectclient

Posted: Sat Apr 19, 2014 9:27 am
by noway
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

Re: [script] detectclient

Posted: Sat Apr 19, 2014 10:48 pm
by Jigsaw
cool idea!^^

Re: [script] detectclient

Posted: Mon Feb 02, 2015 7:41 pm
by IAmYourFriend
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