Determine a Client's OS
2 Attachment(s)
By using QueryClientConVar and checking if these unique convars exist on a client, you can determine which operating system the client is running. Useful for building statistics and other creative ideas.
I've attached an example that I was playing around with. Thanks to psychonic for providing a Mac cvarlist to work with. |
Re: Determine a Client's OS
Really cool! I'll be using this!
|
Re: Determine a Client's OS
That's far nicer than using javascript in a motd! Thank you!
|
Re: Determine a Client's OS
Nice job, very useful! :)
|
Re: Determine a Client's OS
Why are people doing OS-specific stuff in SourcePawn? Are you insane?
|
Re: Determine a Client's OS
It's really just for fun in my case :) Printing a message to clients about percentage of players which use Mac.
|
Re: Determine a Client's OS
Quote:
|
Re: Determine a Client's OS
Oh god what kind of plugin features
|
Re: Determine a Client's OS
banning macosx ppl for example and rewarding linux players
|
Re: Determine a Client's OS
Quote:
|
All times are GMT -4. The time now is 23:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.