Raised This Month: $ Target: $400
 0% 

access(id, ADMIN_LEVEL_B)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 09-28-2006 , 09:53   access(id, ADMIN_LEVEL_B)
Reply With Quote #1

if you use:
Code:
if(access(id,ADMIN_LEVEL_B)) {    //...Do something }
will that check their access level and if it is equal to the said admin level continue to execute the code within the if func?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 09-28-2006 , 10:49   Re: access(id, ADMIN_LEVEL_B)
Reply With Quote #2

yes, equal to get_user_flags(id) & level
Code:
stock access(id,level) {   if ( level==ADMIN_ADMIN )     return is_user_admin(id)   return (get_user_flags(id) & level) }
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang 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 04:45.


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