AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Just for help someone (https://forums.alliedmods.net/showthread.php?t=3088)

sanaell 06-25-2004 18:21

Just for help someone
 
Code:
new bool:okidoki=false if(Hbegin > Hend)         {             if (((hours >= Hbegin) && (hours > Hend)) || ((hours < Hbegin) && (hours < Hend)))                 okidoki = true         }         if (Hend > Hbegin)         {             if ((hours >= Hbegin) && (hours < Hend))                 okidoki = true         }           if (Hbegin== Hend)             okidoki = true         if(okidoki) //Your command....


If u want start something betwen 2 Hours (24format) u can use that

Hbegin , Hend are the hours of start and end
hours is actual time
so u can have a command to do betwen 7h and 14h or betwen 14h and 7h all work :)


All times are GMT -4. The time now is 14:38.

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