Thread: [Solved] how to get two admin access?
View Single Post
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 #2

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