Raised This Month: $ Target: $400
 0% 

Custom message in console when access is denied


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 11-06-2005 , 21:44  
Reply With Quote #8



Anyway, I have another question related to user flags. This time I'd like to prevent something to be forced on admins that have ADMIN_IMMUNITY. It's about this piece of code:
Code:
if (get_cvar_num(CVAR_FORCEFORUMNAME))                 force_forumname(id, oldname, authid)
It forces a name on the player, regardless immunity. I looked at the code of some other plugins and and Hawk552's code as posted above, and I thought this would do the trick :
Code:
if(!(get_user_flags(id) & ADMIN_IMMUNITY))             {                 return PLUGIN_CONTINUE                 }             if (get_cvar_num(CVAR_FORCEFORUMNAME))                 force_forumname(id, oldname, authid)
It compiles just fine, but it still doesn't respect the immunity. Has anyone got a suggestion ?
__________________
Janet Jackson is offline
 



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 23:40.


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