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_print( id , print_chat, "It is vip time!" );
}
else
{
client_print( id , print_chat, "It is not vip time!" );
}
__________________