Raised This Month: $ Target: $400
 0% 

Help me FIX Admin Check


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MiloSx7
Member
Join Date: Oct 2011
Location: Serbia, Nish
Old 11-12-2011 , 05:42   Help me FIX Admin Check
Reply With Quote #1

PHP Code:
public ShowVIPOnline(id)
{
    if(
get_pcvar_num(p_VIPCheck) == 1)
    {
        new 
vipnames[33][64]
        
        if(
is_user_connected(0))
        {
            if(
get_user_flags(0) & ADMIN_LEVEL_C)
            {
                
get_user_name(0vipnames[0], charsmax(vipnames))
                
ColorChat(idGREEN"VIP Online: %s"vipnames[0], charsmax(vipnames))
            }
        }
        
        else 
        {
            
ColorChat(idGREEN"[^3V.I.P^4] ^1No ^3V.I.P-a ^1online")
            return 
PLUGIN_HANDLED
        
}
    }
    else
    {
        
ColorChat(idGREEN"[^3V.I.P^4] ^3V.I.P's ^1Online ^4DISABLEDD")
        return 
PLUGIN_HANDLED
    
}
    
    return 
PLUGIN_CONTINUE

It seems not to work, because i always see No VIP Online -.-
Can you help me somehow to fix this i know I'm near to the solution..
__________________
MiloS
MiloSx7 is offline
Send a message via MSN to MiloSx7
 



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 08:29.


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