ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/cmds/adm/shutdown.c

HOME :: cmds :: adm :: shutdown.c
/*  shutdown.c

    Copyright (C) 1994-2000 Annihilator 

    This program is a part of ES2 mudlib. Permission is granted to use,
    modify, copy or distribute this program provided this copyright notice
    remains intact and subject to the restriction that this program MAY
    NOT be used in any way for monetary gain.

    Details of terms and conditions is available in the Copyright.ES2 file.
    If you don't receive this file along with this program, write to the
    primary author of ES2 mudlib: Annihilator 
*/

#include 

inherit F_CLEAN_UP;

int
main(object me, string arg)
{
    string wiz_status;
    object *user, link_ob;
    int i;

    SECURED_ADMIN_COMMAND;

    seteuid(geteuid(this_player(1)));

    message("system", "遊戲重新啟動﹐請稍候一分鐘再 login 。\n", users() );

    user = users();
    for(i=0; i         if( !environment(user[i]) ) continue;
        user[i]->save();
    }

    shutdown();
    return 1;
}
int help (object me)
{
        write(@HELP
指令格式: shutdown
 
馬上重新起動遊戲。
 
HELP
);
        return 1;
}
 
HOME :: cmds :: adm :: shutdown.c