Raised This Month: $ Target: $400
 0% 

Add admin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PhenomZ
Junior Member
Join Date: Feb 2009
Old 03-07-2009 , 21:21   Add admin?
Reply With Quote #1

How do I add only admin access to a certain plugin?
PhenomZ is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 03-07-2009 , 23:10   Re: Add admin?
Reply With Quote #2

edit the ini file called "cmdaccess.ini"
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
PhenomZ
Junior Member
Join Date: Feb 2009
Old 03-08-2009 , 04:31   Re: Add admin?
Reply With Quote #3

no i mean that if example i have a plugin that makes everyone have 2 guns.

i just want that to work on admins that have maybe flag 'a'.

how and where should i do that to make the plugin affect only admins.
PhenomZ is offline
Metanabol
Member
Join Date: Feb 2009
Old 03-08-2009 , 05:45   Re: Add admin?
Reply With Quote #4

PHP Code:
if(get_user_flags(id) & ADMIN_IMMUNITY)
{
//giving guns :)


Last edited by Metanabol; 03-08-2009 at 05:48.
Metanabol is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 03-08-2009 , 07:16   Re: Add admin?
Reply With Quote #5

Also if you don't know all the defines, you can go to amxconst.inc and you'll find the list with explanations.
SnoW is offline
Send a message via MSN to SnoW
PhenomZ
Junior Member
Join Date: Feb 2009
Old 03-08-2009 , 07:55   Re: Add admin?
Reply With Quote #6

oh thanks for all the answers.
i'll try it out later.
love you guys.
PhenomZ 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 08:52.


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