Raised This Month: $ Target: $400
 0% 

Zombie Plague question ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-01-2021 , 17:42   Re: Zombie Plague question ?
Reply With Quote #8

Quote:
Originally Posted by romeo72 View Post
Hello Supremache,

now it worked !! Thank you very very much for the quick help!

I still have one question though. the zombie plague mod consists of an .amxx file that is active from 7 p.m. to 6 a.m.

but if I want to install a deatchmatch mod now, for example
a deathmatch server has several .amxx files:
csdm_equip.amxx
csdm_main.amxx
and so forth...

how can I solve that?
would be very grateful if you could help me again!

best regards
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[ ][ ] = {
    
"file1.amxx""file2.amxx""file3.amxx""file4.amxx""file5.amxx" 
}

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" );

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache 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:46.


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