Raised This Month: $ Target: $400
 0% 

get_flags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kasu007
Junior Member
Join Date: Jan 2013
Old 01-20-2014 , 06:48   get_flags
Reply With Quote #1

Question: Which is faster and less cpu usage.
Doing
PHP Code:
#define VipAccess ADMIN_CHAT
public vipMenu(id){
    if(
get_user_flagsid) & VipAccess ){
        
// menu
        // give item
   
}
}

OR

new 
vipAccess[32];
public 
client_putinserver(id){
    if(
get_user_flagsid) & VipAccess ){
        
vipAccess[id] = true;
    }
}
public 
client_disconnect(id){
    
vipAccess[id] = false;
}
public 
vipMenu(id){
    if( 
vipAccess ){
        
// menu
        // give item
   
}


Last edited by kasu007; 01-20-2014 at 06:50.
kasu007 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 10:14.


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