AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   stupid question [solved] (https://forums.alliedmods.net/showthread.php?t=84943)

Owyn 02-03-2009 08:22

stupid question [solved]
 
yea, stupid question, but i need it
if player DOESN'T have specific admin flag, so execute code

AntiBots 02-03-2009 08:23

Re: is it possible to check if a player DOESN'T have an admin flag?
 
!is_user_admin(id)

Owyn 02-03-2009 08:24

Re: stupid question [solved]
 
check user flag
{
nothing
}
else
{
action
}
i got it)

Bugsy 02-03-2009 09:33

Re: stupid question [solved]
 
PHP Code:

if( !(get_user_flags(id) & ADMIN_BAN) )
    
client_printid print_chat"sorry chief, you can't ban anyone"); 



All times are GMT -4. The time now is 01:51.

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