Raised This Month: $51 Target: $400
 12% 

OnRoundStart problem


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-20-2017 , 06:05   Re: OnRoundStart problem
Reply With Quote #11

Quote:
Originally Posted by Mitchell View Post
GetUserFlagBits(i) & ADMFLAG_CUSTOM1 will return true if the client has the flag, or will return false if the client does not.
You might want to review how bitwise and works, because GetUserFlagBits(i) & ADMFLAG_CUSTOM1 returns either ADMFLAG_CUSTOM1 (32768) or 0.

Likewise, GetUserFlagBits(i) & (ADMFLAG_CUSTOM1|ADMFLAG_CUSTOM2) returns one of:
  • ADMFLAG_CUSTOM1|ADMFLAG_CUSTOM2 (98304)
  • ADMFLAG_CUSTOM1 (32768)
  • ADMFLAG_CUSTOM2 (65536)
  • 0
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-20-2017 at 06:11.
Powerlord 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 10:08.


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