AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   access(id, ADMIN_LEVEL_B) (https://forums.alliedmods.net/showthread.php?t=45291)

Rolnaaba 09-28-2006 09:53

access(id, ADMIN_LEVEL_B)
 
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?

jim_yang 09-28-2006 10:49

Re: access(id, ADMIN_LEVEL_B)
 
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) }


All times are GMT -4. The time now is 04:45.

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