Think of set_user_flags() more like add_user_flags(). The flags you set with set_user_flags() are not always what the player will end up with after the function is called, since it's truly adding, not setting.
Example, suppose user already has flags "abc" and then you do set_user_flags( "d" ), he will end up with "abcd"
Bookmark this page:
http://www.amxmodx.org/api/
__________________