搜索
查看: 3804|回复: 13

CS1.5里的new round

[复制链接]
发表于 2008-5-29 20:07:04 | 显示全部楼层 |阅读模式 来自 北京海淀
由于cs1.5没有HLTV事件,致使很多热爱1.5的玩家碰到1.6插件使用HLTV来检测新开局时产生困扰,正确的解决办法如下所示。注意,不要使用ResetHUD来替代HLTV。
  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #define PLUGIN "New Round In CS1.5"
  4. #define AUTHOR "Jim"
  5. #define VERSION "1.0"
  6. public plugin_init()
  7. {
  8. register_plugin(PLUGIN, VERSION, AUTHOR)
  9. register_forward(FM_FindEntityByString, "fw_findentbystring")
  10. }
  11. public fw_findentbystring(ent, const field[], const value[])
  12. {
  13. if(equal(value, "info_map_parameters"))
  14.   new_round()
  15. forward_return(FMV_CELL, 0)
  16. return FMRES_IGNORED
  17. }
  18. public new_round()
  19. {
  20. //our new round started
  21. }
复制代码
发表于 2008-5-29 20:54:57 | 显示全部楼层 来自 广东深圳

回复: CS1.5里的new round

顶。。。。。。。。。。。。。。。。好贴
回复

使用道具 举报

发表于 2008-5-29 23:51:29 | 显示全部楼层 来自 黑龙江齐齐哈尔

回复: CS1.5里的new round

我的偶像。我是你的米
回复

使用道具 举报

发表于 2008-5-30 01:49:26 | 显示全部楼层 来自 福建漳州

回复: CS1.5里的new round

虽然我现在已经不管1.5了,但还是要顶一下,强帖!!
回复

使用道具 举报

发表于 2008-5-30 06:23:25 | 显示全部楼层 来自 广东广州

回复: CS1.5里的new round

支持一下,确实好贴!:super:
回复

使用道具 举报

发表于 2008-5-30 08:52:05 | 显示全部楼层 来自 上海徐汇区

回复: CS1.5里的new round

哈哈,这下好了,可以让CS1.5能用上更多更好的插件。:super:
回复

使用道具 举报

发表于 2008-6-2 11:33:42 | 显示全部楼层 来自 广东深圳

回复: CS1.5里的new round

虽然不用1。5的,但还是要顶下
回复

使用道具 举报

发表于 2008-6-4 23:14:05 | 显示全部楼层 来自 江苏南京

回复: CS1.5里的new round

:super: :super:
回复

使用道具 举报

发表于 2008-6-5 10:21:46 | 显示全部楼层 来自 浙江温州

回复: CS1.5里的new round

[PHP]public fw_findentbystring(ent, const field[], const value[])
         if(equal(value, "info_map_parameters"))[/PHP]
ent, const field[], const value[],value这几个参数代表什么意思该如何添呢
回复

使用道具 举报

发表于 2008-6-5 11:00:18 | 显示全部楼层 来自 广东深圳

回复: CS1.5里的new round

Post by 冰河
[php]public fw_findentbystring(ent, const field[], const value[])
if(equal(value, "info_map_parameters"))[/php]
ent, const field[], const value[],value这几个参数代表什么意思该如何添呢

那个不用理它的!
主要是
public new_round()
可以添加自己在新一局的事件就行了!

不知道说的对不!!
回复

使用道具 举报

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

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