Raised This Month: $ Target: $400
 0% 

FM_Time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-13-2019 , 19:53   Re: FM_Time
Reply With Quote #6

you can try with ServerFrame no?

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

#define FRAMES_IN_SECOND 100

public plugin_init()
{
    
register_plugin("Get Ready for 2020","0.1","SmileY");
    
    
register_forward(FM_StartFrame,"StartFrame");
}

public 
StartFrame()
{
    static 
Time FRAMES_IN_SECOND;
    
    if(--
Time
    {
        return;
    }
    
    
Time FRAMES_IN_SECOND;
    
    
// Do task here
    
server_print("One Second Passed, checking time!");
    
    new 
Time[32];
    
get_time("%m/%d/%Y - %H:%M:%S",Time,charsmax(Time)); // Change format for desired result
    
    
if(equali(Time,"12/31/2019 - 23:59:59"))
    {
        
// Do task here!
        
client_print(0,print_chat,"[AMXX] Get Ready for 2020 bro!!");
    }

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 11-13-2019 at 20:08.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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 02:42.


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