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

CheckCommandAccess fails check access


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 10-30-2020 , 13:09   CheckCommandAccess fails check access
Reply With Quote #1

PHP Code:
RegAdminCmd("sm_access_viewer"Command_AccessViewerADMFLAG_GENERIC|ADMFLAG_ROOT|ADMFLAG_CUSTOM6"Usage command sm_access_viewer"); 
PHP Code:
if(CheckCommandAccess(i"sm_access_viewer"ADMFLAG_CUSTOM6)) {
    ++
iPlayersNum[VIP];
    
iPlayersAccess[i][VIP] = 1;
}
if(
CheckCommandAccess(i"sm_access_viewer"ADMFLAG_ROOT)) {
    ++
iPlayersNum[ADMIN];
    
iPlayersAccess[i][ADMIN] = 1;
}
else if(
CheckCommandAccess(i"sm_access_viewer"ADMFLAG_GENERIC)) {
    ++
iPlayersNum[MODER];
    
iPlayersAccess[i][MODER] = 1;

CheckCommandAccess ADMFLAG_GENERIC always false for client with `abjkt` flags

Last edited by ZASTRELIS; 10-30-2020 at 13:10.
ZASTRELIS 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 09:16.


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