View Single Post
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 06-29-2013 , 18:52   Re: Determine a Client's OS
Reply With Quote #30

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