Raised This Month: $12 Target: $400
 3% 

[Any] Stand Alone AFK Check


Post New Thread Reply   
 
Thread Tools Display Modes
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-01-2015 , 20:29   Re: [Any] Stand Alone AFK Check
Reply With Quote #11

No, of a menu is up all slot keys are diverted to the menu, that means 0-9
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 01-01-2015 , 20:34   Re: [Any] Stand Alone AFK Check
Reply With Quote #12

Quote:
Originally Posted by friagram View Post
No, of a menu is up all slot keys are diverted to the menu, that means 0-9
I see
__________________
Phaiz is offline
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
Reply


Thread Tools
Display Modes

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 09:19.


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