搜索
查看: 1707|回复: 2

有人知道restartgame.amx这个插件吗?

[复制链接]
发表于 2004-11-7 12:34:13 | 显示全部楼层 |阅读模式 来自 中国–浙江–杭州
有人知道restartgame.amx这个插件吗?
哪里有的下载,插件和原代码都要
发表于 2004-11-7 12:45:50 | 显示全部楼层 来自 中国–湖北–武汉
这个?
/* AMXMOD X script.
*
* (c) Copyright 2000-2002, BenZoN - Rich - Shift
* This file is provided as is (no warranties).
*
*   v0.5 - Password shown only to teamed players ( not HLTV )
*
*   v0.4 - Initial Release
*
*/

#include <amxmodx>
#include <amxmisc>

public amx_restartgame(id,level,cid)
{
    if (!cmd_access(id,level,cid,0))
    {
        return PLUGIN_CONTINUE
    }
    set_hudmessage(0, 200, 0, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.1, 1)
    show_hudmessage(0,"Live on Three Restarts")
    set_task(3.0, "rround")
    set_task(6.0, "rround")
    set_task(9.0, "rround")
    set_task(11.0, "lmessage")
    return PLUGIN_HANDLED
}

public rround()
{
    server_cmd("sv_restartround 1")
}

public lmessage()
{
    new sv_pass[32], players[32], playernum
    set_hudmessage(0, 200, 0, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.1, 3)
    show_hudmessage(0,"WE ARE LIVE AND THE FIGHT IS ON !")
    get_cvar_string("sv_password",sv_pass,32)
    set_hudmessage(255, 255, 255, -1.0, 0.80, 0, 6.0, 6.0, 0.1, 0.1, 4)
    get_players(players,playernum)
    for(new a = 1; a < playernum; ++a)
    {
        if ( get_user_team(players[a]) < 3 )
        {
            show_hudmessage(players[a],"Server Password: %s",sv_pass)
        }
    }
}

public plugin_init()
{
    register_plugin("Restart Game","0.5","BenZoN - Rich - Shift")
    register_clcmd("amx_restartgame","amx_restartgame",ADMIN_CFG,"amx_restartgame - Triple Restart For Match")
    return PLUGIN_CONTINUE
}
回复

使用道具 举报

 楼主| 发表于 2004-11-21 13:05:48 | 显示全部楼层 来自 中国–浙江–杭州
是的,谢谢
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表