Raised This Month: $ Target: $400
 0% 

Zombie Plague question ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
romeo72
Member
Join Date: Oct 2021
Old 11-02-2021 , 00:19   Re: Zombie Plague question ?
Reply With Quote #9

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_pluginPLUGINVERSIONAUTHOR )
    
    for( new 
0charsmaxszModFiles ) ; i++ )
    {
        if( 
ActivateModStopTime ) )
        {
            if( 
pause"cd"szModFiles] ) )
            {
                
log_amx"%s has been stopped!"szModFiles] )
            }
    
        }
        else if( 
ActivateModStartTime ) )
        {
            if( 
unpause"cd"szModFiles] ) )
            {
                
log_amx"%s has been started!"szModFiles] )
            }
        }
    }
}

bool:ActivateMod( const szDate[ ] )
{
    return 
get_systime( ) >= parse_timeszDate"%H:%M:%S" );

would be nice if you could help me one last time

best regards
romeo72 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:45.


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