AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Add admin? (https://forums.alliedmods.net/showthread.php?t=87183)

PhenomZ 03-07-2009 21:21

Add admin?
 
How do I add only admin access to a certain plugin?

DruGzOG 03-07-2009 23:10

Re: Add admin?
 
edit the ini file called "cmdaccess.ini"

PhenomZ 03-08-2009 04:31

Re: Add admin?
 
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.

Metanabol 03-08-2009 05:45

Re: Add admin?
 
PHP Code:

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



SnoW 03-08-2009 07:16

Re: Add admin?
 
Also if you don't know all the defines, you can go to amxconst.inc and you'll find the list with explanations.

PhenomZ 03-08-2009 07:55

Re: Add admin?
 
oh thanks for all the answers.
i'll try it out later.
love you guys.


All times are GMT -4. The time now is 08:52.

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