Raised This Month: $ Target: $400
 0% 

Solved how to get two admin access?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-02-2021 , 21:19   Re: how to get two admin access?
Reply With Quote #1

You just need to add the condition that VIP is only given to those with ADMIN_LEVEL_H and not ADMIN_KICK. To make it more comprehensible, I would flip the if statement logic (never do "if not" if you're also going to have an else statement, it makes it hard to read and understand).

One way to do this is like so:

PHP Code:

if( get_user_flags(id) & (ADMIN_LEVEL_H ADMIN_KICK) == ADMIN_LEVEL_H )
{
    
CromChat(0"!w VIP!g [%s]!w moved an object after building time."adminname)
}
else
{
    
CromChat(0"!w Admin!g [%s]!w moved an object after build time."adminname)

__________________
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 11:41.


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