akEr 发表于 2009-2-6 18:18:02

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

本帖最后由 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")
      }
}

jim_yang 发表于 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")
        }
}

akEr 发表于 2009-2-6 19:56:56

谢谢兄弟 我测试一下

ttbs123 发表于 2009-2-6 20:25:33

有何意义?30人每人说个go字,屏幕也只显示左右几个,其他的都给刷屏刷掉拉。

akEr 发表于 2009-2-6 20:42:51

我是想把几个大大的插件结合起来 搞一个 自动R3 teamtalk 还有就是开局自动给队友报自己的金钱数 比赛比较方便

ttbs123 发表于 2009-2-8 01:32:22

ResetHUD好像容易群踢吧?我的插件都不敢用这个事件了。
页: [1]
查看完整版本: 如何实现开局每个玩家用say_team打一个GO字?