Raised This Month: $ Target: $400
 0% 

add admin access on command /get on both plugins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-12-2020 , 00:23   Re: add admin access on command /get on both plugins
Reply With Quote #2

Add the following code at the beginning of each of the functions you want to require admin access:

PHP Code:
if( ~get_user_flags(id) & ADMIN_BAN )
{
    
client_print(idprint_chat"Access denied message here")
    return 
PLUGIN_HANDLED

__________________
fysiks 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:03.


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