Raised This Month: $51 Target: $400
 12% 

Admin Pass


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolzin123
Member
Join Date: Apr 2009
Old 08-04-2009 , 10:36   Admin Pass
Reply With Quote #1

How i block the case to only admins?

PHP Code:
if( user_has ADMIN_FLAG 
????
lolzin123 is offline
fang
Senior Member
Join Date: Nov 2007
Location: New Jersey
Old 08-04-2009 , 12:02   Re: Admin Pass
Reply With Quote #2

Code:
if(get_user_flags(id)&&ADMIN_LEVEL_A)
{
         //do whatever
}
else{
         return PLUGIN_HANDLED
}
fang is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-04-2009 , 12:21   Re: Admin Pass
Reply With Quote #3

Be more descriptive please.
__________________
hleV is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 08-04-2009 , 18:50   Re: Admin Pass
Reply With Quote #4

Quote:
Originally Posted by fang View Post
Code:
if(get_user_flags(id)&&ADMIN_LEVEL_A)
{
         //do whatever
}
else{
         return PLUGIN_HANDLED
}
No need to do return PLUGIN_HANDLED there.
zacky is offline
Send a message via Skype™ to zacky
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-04-2009 , 20:32   Re: Admin Pass
Reply With Quote #5

Just answer my question in your other thread and I will show you.
__________________
fysiks 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 00:28.


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