Raised This Month: $ Target: $400
 0% 

Flags related


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-19-2012 , 02:20   Re: Flags related
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
It works. Just that it's different than what you ended up using. The one that I posted allows them to have other flags but must have, at the very least, both these flags.

The one you ended up using will only return true if and only if the player has only those two flags. Is that what you wanted? When you stated in your first post that you wanted to specifically exclude flag "h" it made it seem like you could have other flags but just not "h". (Granted, mine doesn't check for the absence of any particular flags)
i guess thats what he wanted

Quote:
Originally Posted by EDUTz View Post
Code:
public client_putinserver(id) {
	new flags = get_user_flags(id)
	if (flags & (ADMIN_SLAY | ADMIN_MAP) && flags ^ ADMIN_CHAT) {
		server_cmd(...)
	}
}
Doesn't work
it affects "ef" and "bcefjimr" and "bcdtefhijr" and so on ...
I need to work just on "ef" flags ...
jimaway is offline
 



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 08:15.


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