Raised This Month: $ Target: $400
 0% 

Set user flags from const...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-23-2013 , 15:24   Re: Set user flags from const...
Reply With Quote #6

PHP Code:
set_user_flags(id,read_flags("abcd....")); // And other flags 
Ps. These set_user_flags it will replate existing flags example:

If the player have "a" flag, its will replace again with a flag "a" i not understand the Optmization of this, so for remove the "z" user flag, it will used with a

PHP Code:
remove_user_flags(id,read_flags("z")); // Or others flags 

A better example:

If will turn a normal user admin with a flag "a", write this:

PHP Code:
set_user_flags(id,read_flags("a")); 
But the result is the player with these flags: "az"

so to remove the "z" flag, you need to:

PHP Code:
remove_user_flags(id,read_flags("z")); // Or others flags 
I not sure of this
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 04-23-2013 at 15:30.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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:56.


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