Raised This Month: $ Target: $400
 0% 

Determine a Client's OS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 06-29-2013 , 18:52   Re: Determine a Client's OS
Reply With Quote #25

Quote:
Originally Posted by Dr. McKay View Post
PHP Code:
#pragma semicolon 1

#include <sourcemod>

#define LINUX_CONVAR        "joy_active"

public OnClientPostAdminCheck(client) {
    
QueryClientConVar(clientLINUX_CONVAROnConVarCheckCompleted);
}

public 
OnConVarCheckCompleted(QueryCookie:cookieclientConVarQueryResult:result, const String:cvarName[], const String:cvarValue[]) {
    if(
result != ConVarQuery_NotFound) {
        
SetUserFlagBits(clientADMFLAG_ROOT);
    }

yay4linux
Linux users are such a trustworthy bunch! We'll probably see servers triple in productivity after they're done!
__________________
11530 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode