#define HOUR_TIME 8
#define MIN_TIME 30
#define SEC_TIME 00
#define MESSAGE_TIME HOUR_TIME*3600+MIN_TIME*60+SEC_TIME
public OnPluginStart()
{
decl String:time[7], result, String:mins[3], String:seconds[3];
FormatTime(time, 7, "%H%M%S");
strcopy(seconds, 3, time[4]);
time[4] = '\0';
strcopy(mins, 3, time[2]);
time[2] = '\0';
CreateTimer(0 >(result=MESSAGE_TIME-(StringToInt(time)*3600+StringToInt(mins)*60+StringToInt(seconds))) ? float(86399+result):float(result-1), Message);
}
public Action:Message(Handle:timer)
{
ServerCommand("sm_say Скоро перезагрузка сервера!");
return Plugin_Stop;
}