Raised This Month: $ Target: $400
 0% 

Free VIP code.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-22-2017 , 14:04   Re: Free VIP code.
Reply With Quote #13

This is it, try this now
PHP Code:
public Spawn(id

    new 
hour 
    time
(hour
    
    if(
21 <= hour || hour 9
    { 
        
Ads[id] = true 
        
        
if(get_user_flags(id) & ADMIN_USER && !HappyHour[id]) 
        {
            
HappyHour[id] = true 
            remove_user_flags
(idADMIN_USER
            
set_user_flags(idADMIN_LEVEL_C
            
            if(
Ads[id]) 
            { 
                
set_hudmessage(02550, -1.0, -1.016.05.00.52.0
                
show_hudmessage(id"Happy Hour is ON! Enjoy Free VIP :)"
            } 
        } 
        
        else if(
get_user_flags(id) & ADMIN_KICK
        { 
            if(
get_user_flags(id) & ADMIN_LEVEL_C
            { 
                return 
PLUGIN_CONTINUE 
            

            else 
            { 
                
set_user_flags(idADMIN_LEVEL_C
                
                if(
Ads[id]) 
                { 
                    
set_hudmessage(02550, -1.0, -1.016.05.00.52.0
                    
show_hudmessage(id"Happy Hour is ON! Enjoy Free VIP :)"
                } 
                
                
AdminHappyHour[id] = true 
            

        } 
        
    } 
    else 
    { 
        if(
HappyHour[id]) 
        {
            if(
get_user_flags(id) & ADMIN_LEVEL_C
            { 
                
remove_user_flags(idADMIN_LEVEL_C
                                
set_user_flags(idADMIN_USER)
                
                if(
Ads[id]) 
                { 
                    
set_hudmessage(25500, -1.0, -1.016.05.00.52.0
                    
show_hudmessage(id"Happy Hour is OFF! :)"
                } 
            } 
            
HappyHour[id] = false 
        

        else if(
AdminHappyHour[id]) 
        { 
            if(
get_user_flags(id) & ADMIN_LEVEL_C
            { 
                
remove_user_flags(idADMIN_LEVEL_C
                
                if(
Ads[id]) 
                { 
                    
set_hudmessage(25500, -1.0, -1.016.05.00.52.0
                    
show_hudmessage(id"Happy Hour is OFF! :)"
                    
                    
Ads[id] = false 
                

            } 
            
AdminHappyHour[id] = false 
        

    } 


Last edited by TheWhitesmith; 11-22-2017 at 14:06.
TheWhitesmith 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 18:39.


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