Raised This Month: $ Target: $400
 0% 

cs 1.6 flag selection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-15-2022 , 00:20   Re: cs 1.6 flag selection
Reply With Quote #1

Add a check for access at the beginning of each of the functions to which you want to restrict access:

PHP Code:
    if( !access(idADMIN_LEVEL_A) )
    {
        return 
PLUGIN_HANDLED;
    } 
You'll need to include amxmisc.inc.
__________________

Last edited by fysiks; 09-21-2022 at 00:48. Reason: Added semicolon due to the code requiring it via pragma
fysiks is offline
GGC Theos
Junior Member
Join Date: Sep 2022
Old 09-15-2022 , 00:23   Re: cs 1.6 flag selection
Reply With Quote #2

Thank you. i need to define ADMIN_LEVEL_A too right?
GGC Theos is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-15-2022 , 00:41   Re: cs 1.6 flag selection
Reply With Quote #3

Quote:
Originally Posted by GGC Theos View Post
Thank you. i need to define ADMIN_LEVEL_A too right?
No, all of the admin flags are defined in amxconst.inc.
__________________
fysiks is offline
GGC Theos
Junior Member
Join Date: Sep 2022
Old 09-15-2022 , 00:45   Re: cs 1.6 flag selection
Reply With Quote #4

Thanks a lot my man!
GGC Theos is offline
Reply



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 15:41.


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