hello supremache
PERFECT .... thank you very much !!!
Unfortunately, I still have one last question. does that also work with maps?
So does that also work with maps from 7 p.m. to 6 a.m.?
for example:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new const StartTime[ ] = "07:00:00" /* Hour : Minute : Secound */
new const StopTime[ ] = "06:00:00"
new const szModFiles[ ][ ] = {
"map de_dust2", "map de_nuke"
}
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
for( new i = 0; i < charsmax( szModFiles ) ; i++ )
{
if( ActivateMod( StopTime ) )
{
if( pause( "cd", szModFiles[ i ] ) )
{
log_amx( "%s has been stopped!", szModFiles[ i ] )
}
}
else if( ActivateMod( StartTime ) )
{
if( unpause( "cd", szModFiles[ i ] ) )
{
log_amx( "%s has been started!", szModFiles[ i ] )
}
}
}
}
bool:ActivateMod( const szDate[ ] )
{
return get_systime( ) >= parse_time( szDate, "%H:%M:%S" );
}
would be nice if you could help me one last time
best regards