搜索
查看: 2391|回复: 5

如何实现开局每个玩家用say_team打一个GO字?

[复制链接]
发表于 2009-2-6 18:18:02 | 显示全部楼层 |阅读模式 来自 浙江宁波
本帖最后由 akEr 于 2009-2-7 15:04 编辑

如何实现开局每个玩家用say_team打一个GO字? (其实我这个GO字只是代表一下 实际应用是比赛的时候给每个队友报自己的金钱数)
本人只会架服 编程一点都不会 希望有高手帮忙


----------------------------谢谢JIM-----------------
基本已经实现,但有个问题就是比赛冻结时间一般比较长 而这个GO字却在冻结时间结束后才打出来 有点晚了。如何才能在冻结时间刚开始的时候打出这个GO字呢?


#include <amxmodx>
#include <amxmisc>

#define PLUGIN        "Test"
#define AUTHOR        "Jim"
#define VERSION        "1.0"

public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_logevent("round_start", 2, "1=Round_Start")
}

public round_start()
{
        new maxppl = get_maxplayers()
        for(new i = 1; i <= maxppl; ++i)
        {
                if(is_user_alive(i))
                        client_cmd(i, "say_team go")
        }
}




==============已经实现=============谢谢CSJUMP的乌龟小弟===========
register_event("ResetHUD", "new_round", "be")  
public new_round()
{
        new maxppl = get_maxplayers()
        for(new i = 1; i <= maxppl; ++i)
        {
                if(is_user_alive(i))
                        client_cmd(i, "say_team go")
        }
}
发表于 2009-2-6 19:54:59 | 显示全部楼层 来自 北京海淀
#include <amxmodx>
#include <amxmisc>

#define PLUGIN        "Test"
#define AUTHOR        "Jim"
#define VERSION        "1.0"

public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_logevent("round_start", 2, "1=Round_Start")
}

public round_start()
{
        new maxppl = get_maxplayers()
        for(new i = 1; i <= maxppl; ++i)
        {
                if(is_user_alive(i))
                        client_cmd(i, "say_team go")
        }
}
回复

使用道具 举报

 楼主| 发表于 2009-2-6 19:56:56 | 显示全部楼层 来自 浙江宁波
谢谢兄弟 我测试一下
回复

使用道具 举报

发表于 2009-2-6 20:25:33 | 显示全部楼层 来自 广东深圳
有何意义?30人每人说个go字,屏幕也只显示左右几个,其他的都给刷屏刷掉拉。
回复

使用道具 举报

 楼主| 发表于 2009-2-6 20:42:51 | 显示全部楼层 来自 浙江宁波
我是想把几个大大的插件结合起来 搞一个 自动R3 teamtalk 还有就是开局自动给队友报自己的金钱数 比赛比较方便
回复

使用道具 举报

发表于 2009-2-8 01:32:22 | 显示全部楼层 来自 广东深圳
ResetHUD好像容易群踢吧?我的插件都不敢用这个事件了。
回复

使用道具 举报

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

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