AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Get Time (https://forums.alliedmods.net/showthread.php?t=324752)

jugule 05-26-2020 07:48

Get Time
 
Hi, I need to know how to check if it's a fixed time. (10:00 / 11:00)
Example:

if (Hour> 20:00)
{
// code
}
Can you give me an example?

MAGNAT2645 05-26-2020 08:04

Re: Get Time
 
You can use FormatTime and convert it to integer.
Here's example.

jugule 05-26-2020 08:12

Re: Get Time
 
Quote:

Originally Posted by MAGNAT2645 (Post 2702380)
You can use FormatTime and convert it to integer.
Here's example.

Thank you!
Solved!


All times are GMT -4. The time now is 18:41.

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