AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   if dosn't have flag (https://forums.alliedmods.net/showthread.php?t=54022)

MPNumB 04-15-2007 12:08

if dosn't have flag
 
I am sorry, 4 this question, but I am new in scripting. Can you help me? If user has IMMUNITY formula will look like this:
Quote:

if (get_user_flags(id)&ADMIN_IMMUNITY) {
...
}
And what will the formula look like if user dosn't have IMMUNITY flag?

VEN 04-15-2007 13:03

Re: if dosn't have flag
 
Dark Kingdom is incorrect. ADMIN_LEVEL_A is
Quote:

m - custom level A
The correct answer:
Quote:

if (!(get_user_flags(id)&ADMIN_IMMUNITY)) {
...
}

MPNumB 04-19-2007 18:59

Re: if dosn't have flag
 
Thx. =)


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

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