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 10-31-2021 , 17:20   Re: Zombie Plague question ?
Reply With Quote #2

Quote:
Originally Posted by romeo72 View Post
Hello, everyone.

I have a question and I hope that you can help me further. is it possible to activate the zombie plague plugin at certain times of the day? for example every day from 7 p.m. to 6 a.m. in the morning.

if so, would that also be possible with other plugins?

Thank you very much !!!

best regards
Yes it's possible try this way:

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 MOD [ ] = "zombieplague.amxx";

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    if( 
ActivateModStopTime ) )
    {
        if( 
pause"cd"MOD ) )
        {
            
log_amx"%s has been stopped!"MOD )
        }
    }
    else if( 
ActivateModStartTime ) )
    {
        if( 
unpause"cd"MOD ) )
        {
            
log_amx"%s has been started!"MOD )
        }
    }
}

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.

Last edited by Supremache; 11-01-2021 at 13:13.
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