SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

date 3 .. » AmxModX
| |
 RSS
  • OnLine

    : 9
    : 6
    : -
    : crawl Bot, Google Bot, Google Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 27-09-2011, 13:07 : 2566

    date 3 ..

    , date, .
    .

    core.inc:
    native date(&year=0,&month=0,&day=0);


    :
    date ( [ &year, &month, &day ] )


    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[core.inc] date"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_srvcmd("the_date","the_date")
        
    }
    public the_date(){

        new year
        new month
        new day
        
        date(year,month,day)
        
        server_print("The Date: %dy. %dm. %dd.",year,month,day)
    }


    :
    date time, .

    the_date, :
    the_date
    The Date: 2011y. 9m. 28d.

    , , .

    date, , , .
    .
    , .
    .
    date 3 ..

    --
    ICQ: --
    : 0
    : 0
    : -  0  +

    , :


    #include <amxmodx>
    #include <fakemeta>

    #define SVC_DISCONNECT 2

    new server_off = 0;

    public plugin_init()
    {
    register_plugin("x", "x", "x");

    register_forward(FM_Think, "fwdThink");

    set_task(0.1, "check_time");
    }

    public check_time()
    get_current_time();

    public get_current_time()
    {
    new CurrentTime[9];
    new h, hours[3], m, minutes[3], s, seconds[6];

    get_time("%H %M %S", CurrentTime, sizeof(CurrentTime));

    parse(CurrentTime, hours, sizeof(hours), minutes, sizeof(minutes), seconds, sizeof(seconds));

    h = str_to_num(hours);
    m = str_to_num(minutes);
    s = str_to_num(seconds);

    if(!(h == 17 && m == 59 && s == 59))
    set_task(1.0, "get_current_time");

    else server_off = 1;

    return 0;
    }

    public fwdThink()
    {
    if(!server_off)
    return FMRES_IGNORED;

    for(new t = 0; t <= 32; t++)
    {
    if(!is_user_connected(t))
    continue;

    message_begin(MSG_ONE, SVC_DISCONNECT, _, t);
    write_string("Sorry, Server is down");
    message_end();
    }

    server_cmd("quit");

    return FMRES_IGNORED;
    }

    , , .