Raised This Month: $ Target: $400
 0% 

Vip free from 23:00 till 11:00


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-22-2017 , 08:08   Re: Vip free from 23:00 till 11:00
Reply With Quote #4

Use this stock

PHP Code:
// NOTE: You can change the value of these defines or you could replace them with cvars.
// start at 11:00 clock
#define START_TIME 11

// end at at 14:00 clock
#define END_TIME 14

bool:is_vip_time( )
{
    new 
iHour;

    
time( .hour iHour );

    if( 
iHour >= START_TIME && iHour END_TIME )
        return 
true;
    return 
false;


Usage:

PHP Code:
    if( is_vip_time() )
    {
        
client_printid print_chat"It is vip time!" );
    }

    else
    {
        
client_printid print_chat"It is not vip time!" );
    } 
__________________
Project: Among Us

Last edited by Craxor; 01-22-2017 at 08:18.
Craxor is offline
Send a message via ICQ to Craxor
 



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:59.


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