Raised This Month: $ Target: $400
 0% 

Adding required admin level


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SGT
Senior Member
Join Date: Sep 2011
Old 09-28-2011 , 22:45   Adding required admin level
Reply With Quote #1

I need this plugin to work for admins with ADMIN_KICK only instead of all admins. How do I do that?
SGT is offline
Blue Snake.
Member
Join Date: May 2011
Location: Romania
Old 09-29-2011 , 01:27   Re: Adding required admin level
Reply With Quote #2

PHP Code:
public client_putinserver(id)
    
g_admin[id] = is_user_admin(id); 
To
PHP Code:
public client_putinserver(id)
    if(
access(idADMIN_KICK)) g_admin[id] = true

You'll need amxmisc.
Blue Snake. is offline
SGT
Senior Member
Join Date: Sep 2011
Old 09-29-2011 , 06:36   Re: Adding required admin level
Reply With Quote #3

Works, thanks.
SGT is offline
Blue Snake.
Member
Join Date: May 2011
Location: Romania
Old 09-29-2011 , 11:29   Re: Adding required admin level
Reply With Quote #4

I think you'll need an 'else' with g_admin[id]=false....just no i've seen.... It might give admin color to some players witch don't have access.


PHP Code:
public client_putinserver(id)
    if(
access(idADMIN_KICK))
        
g_admin[id] = true;
    else
        
g_admin[id] = false
Blue Snake. 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 19:44.


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