Raised This Month: $ Target: $400
 0% 

Zombie Plague question ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-07-2021 , 20:47   Re: Zombie Plague question ?
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

enum eSettings {
    
bTime32 ],
    
bMap32 ]
}

new const 
g_szSettings][ eSettings ] =
{
    { 
"07:00:00""de_dust2" },// Disable plugin
    
"06:00:00""de_dust" //Enable plugin
}

new const 
szModFiles[ ][ ] = {  "file1.amxx""file2.amxx""file3.amxx""file4.amxx""file5.amxx" }

public 
plugin_init() 
{
    
register_pluginPLUGINVERSIONAUTHOR )
        
    for( new 
0charsmaxszModFiles ) ; i++ )
    {
        if( 
ActivateModg_szSettings][ bTime ] ) )
        {
            if( 
pause"cd"szModFiles] ) )
            {
                
log_amx"%s has been stopped!"szModFiles] )
                
server_cmd"amx_map %s"g_szSettings][ bMap ] )
                
            }
        
        }
        else if( 
ActivateModg_szSettings][ bTime ] ) )
        {
            if( 
unpause"cd"szModFiles] ) )
            {
                
log_amx"%s has been started!"szModFiles] )
                
server_cmd"amx_map %s"g_szSettings][ bMap ] )
            }
        }
    }
}

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
Reply



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