Raised This Month: $ Target: $400
 0% 

help needed with this, modifying flags of user.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-12-2011 , 15:03   help needed with this, modifying flags of user.
Reply With Quote #1

PHP Code:
if(grantedAccess[player] == 0)
    {
        new 
bm = (containi(oldFlags[id], "u"));
        new 
zFlag = (containi(oldFlags[id], "z"));
        new 
bmFlag read_flags("u");
        
oldFlags[id] = get_user_flags(player);
        if((
containi(oldFlags[id], "u")))
        {
            return 
PLUGIN_HANDLED;
        }
        else if(
containi(oldFlags[id], "z"))
        {
            
remove_user_flags(player,oldFlags[id],0)
            
set_user_flags(playerbmFlag0);
            
client_print(0,print_chat"Admin name: %s Player name: %s"namename2);
            
grantedAccess[player] = 1;
        }
        else if(!
bm && !zFlag)
        {
            
set_user_flags(playerbmFlag0);
            
client_print(0,print_chat"Admin name: %s Player name: %s"namename2);
            
grantedAccess[player] = 1;
        }
        return 
PLUGIN_HANDLED;
    } 
I Can't figure out what im doing wrong here.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
 


Thread Tools
Display Modes

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 20:11.


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