AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Admin Pass (https://forums.alliedmods.net/showthread.php?t=99363)

lolzin123 08-04-2009 10:36

Admin Pass
 
How i block the case to only admins?

PHP Code:

if( user_has ADMIN_FLAG 

????

fang 08-04-2009 12:02

Re: Admin Pass
 
Code:

if(get_user_flags(id)&&ADMIN_LEVEL_A)
{
        //do whatever
}
else{
        return PLUGIN_HANDLED
}


hleV 08-04-2009 12:21

Re: Admin Pass
 
Be more descriptive please.

zacky 08-04-2009 18:50

Re: Admin Pass
 
Quote:

Originally Posted by fang (Post 890074)
Code:

if(get_user_flags(id)&&ADMIN_LEVEL_A)
{
        //do whatever
}
else{
        return PLUGIN_HANDLED
}


No need to do return PLUGIN_HANDLED there.

fysiks 08-04-2009 20:32

Re: Admin Pass
 
Just answer my question in your other thread and I will show you.


All times are GMT -4. The time now is 18:26.

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