View Single Post
Darkness_
Veteran Member
Join Date: Nov 2014
Old 01-01-2015 , 20:50   Re: [Any] Stand Alone AFK Check
Reply With Quote #13

Might want to change the plugin so Generic Admins can't afk check Roots and get them kicked using CanUserTarget.

change

PHP Code:
public Action:Command_AFKCheck(clientargs

    for (new 
1<= MaxClientsi++) 
    { 
        if (!
IsClientInGame(i) || IsFakeClient(i) || CheckCommandAccess(i"sm_afkcheck"ADMFLAG_GENERIC)) continue;
        
ShowAFKMenu(i); 
    } 
    
ReplyToCommand(client"[SM] Sent out an AFK check to all non-admins."); 
    return 
Plugin_Handled

to

PHP Code:
public Action:Command_AFKCheck(clientargs

    for (new 
1<= MaxClientsi++) 
    { 
        if (!
IsClientInGame(i) || IsFakeClient(i) || CheckCommandAccess(i"sm_afkcheck"ADMFLAG_GENERIC) || !CanUserTarget(clienti)) continue;
        
ShowAFKMenu(i); 
    } 
    
ReplyToCommand(client"[SM] Sent out an AFK check to all non-admins."); 
    return 
Plugin_Handled

Darkness_ is offline