Jump to content
Sign in to follow this  
X3.!

ZM VIP Print list.

Recommended Posts

Hi

Im using zm vip 1.9.1 by aaarnas, what I wanted to do is to change the flags of vip printing list
What I tried to do is >

Spoiler

public show_vips_online(id) 
{
    new bool:first = true, message[256], len
    
    for (new i=0; i<maxplayers; i++) 
    {
        
        if(p_data[FLAGS] & AT_CHATTAG)
        {
            
            if (!first) {
                
                message[len++] = ','
                message[len++] = ' '
            }
            message[len++] = '^4'
            message[len] = EOS
            len += get_user_name(i, message[len], charsmax(message)-len)
            message[len++] = '^1'
            message[len] = EOS
            
            first = false
        }
    }
    
    if (first) {
        if (is_amxmodx_new_version) client_print_color(id, id, "^4[VIP] ^1%L...", id, "NO_VIP_ONLINE")
        else _client_print_color(id, "^4[VIP] ^1%L...", id, "NO_VIP_ONLINE")
    }
    else {
        if (is_amxmodx_new_version) client_print_color(id, id, "^4[VIP] ^1%L: %s.", id, "ONLINE_VIPS", message)
        else _client_print_color(id, "^4[VIP] ^1%L: %s.", id, "ONLINE_VIPS", message)
    }
    
    print_admin_contacts(id)
    
    return PLUGIN_CONTINUE;
}

Also tried to change         if(p_data[FLAGS] & AT_CHATTAG) to         if(p_data[FLAGS] == AT_CHATTAG).. But its not printing for this flag ..

AT_CHATTAG = flag q.
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×