搜索
楼主: tomcash

[AMXX 带源码] 灵活性和通用性更强的restwpns_fight插件

[复制链接]
发表于 2009-4-20 13:23:43 | 显示全部楼层 来自 湖南怀化
不错。。支持一下。。留个位
回复

使用道具 举报

发表于 2009-4-25 03:29:52 | 显示全部楼层 来自 广东珠海
楼主。我觉得很好玩。。谢谢啦。
回复

使用道具 举报

发表于 2009-4-30 12:19:38 | 显示全部楼层 来自 上海浦东新区
本帖最后由 BliaNe 于 2009-4-30 15:19 编辑

问题1: roundmsg
不能使用 换行符
^n  \n 都不行!!
解决办法:
找到
  1. public show_hint(id)
  2. {
  3.         set_hudmessage(255, 255, 255, -1.0, 0.4, 0, 0.0, 2.5,_,_,1)
  4.         show_hudmessage(id, g_HintMsg)

  5.         set_hudmessage(128, 64, 0, -1.0, 0.63, 0, 0.0, 2.5,0.0,0.0,4)
  6.         show_hudmessage(id, g_RoundMsg[g_RestRoundCounter-1][255])
  7. }
复制代码
替换为
  1. public show_hint(id)
  2. {
  3.         set_hudmessage(255, 255, 255, -1.0, 0.4, 0, 0.0, 2.5,_,_,1)
  4.         show_hudmessage(id, g_HintMsg)
  5.         while (replace(g_RoundMsg[g_RestRoundCounter-1][255], 255, "\n", "^n")) {}
  6.         set_hudmessage(128, 64, 0, -1.0, 0.63, 0, 0.0, 2.5,0.0,0.0,4)
  7.         show_hudmessage(id, g_RoundMsg[g_RestRoundCounter-1][255])
  8. }
复制代码
问题2: amx_clear_restwpns
不能清除 cfgcmd  roundmsg
比如
amxmodx\configs\amxx.cfg 中设置
amx_add_restwpns "d" "1" "1" "sv_alltalk 0" "注意:刀战模式"

amxmodx\configs\maps\de_dust2.cfg 中设置
amx_clear_restwpns
amx_add_restwpns "d" "1" "1" "sv_alltalk 1" "注意:刀战模式"


这样设置的话 当地图换成 de_dust2 时 第一局客户端会显示
两个 "注意:刀战模式"
解决方法:
找到
  1. public cmdClearRestrictWeapons(id, level, cid)
  2. {
  3.         g_RestrictCount = 0
  4.         for(new i=0;i<MAX_REST_ROUND_COUNT;i++)
  5.                 g_weaponflags[i] = FLAG_Z
  6.         return PLUGIN_HANDLED
  7. }
复制代码
替换为
  1. public cmdClearRestrictWeapons(id, level, cid)
  2. {
  3.         g_RestrictCount = 0
  4.         for(new i=0;i<MAX_REST_ROUND_COUNT;i++)
  5.         {
  6.                 g_weaponflags[i] = FLAG_Z
  7.                 g_CfgCmd[i][511] = 0
  8.                 g_RoundMsg[i][255] = 0
  9.         }
  10.         return PLUGIN_HANDLED
  11. }
复制代码
回复

使用道具 举报

发表于 2009-4-30 22:38:51 | 显示全部楼层 来自 广东深圳
不错,留个位,暂时还不需要,谢谢~~~
回复

使用道具 举报

发表于 2009-5-1 12:50:50 | 显示全部楼层 来自 北京
.....
l;klm,/.
回复

使用道具 举报

发表于 2009-5-1 12:51:30 | 显示全部楼层 来自 北京
顶下了啊啊啊
回复

使用道具 举报

 楼主| 发表于 2009-5-2 10:35:54 | 显示全部楼层 来自 上海南汇区
本帖最后由 tomcash 于 2009-5-2 10:42 编辑
问题1: roundmsg
不能使用 换行符
^n  \n 都不行!!
解决办法:
找到public show_hint(id)
{
        set_hudmessage(255, 255, 255, -1.0, 0.4, 0, 0.0, 2.5,_,_,1)
        show_hudmessage(id, g_HintMsg)

        set_hudmessage(128,  ...
BliaNe 发表于 2009-4-30 12:19




嗯,这样就完善多了^_^

老大出马,果然不同凡响:victory:
回复

使用道具 举报

发表于 2009-5-24 21:23:14 | 显示全部楼层 来自 浙江杭州
創新意思比較好。頂你
回复

使用道具 举报

发表于 2011-3-7 16:08:27 | 显示全部楼层 来自 浙江湖州
准备试下如何
回复

使用道具 举报

发表于 2013-1-10 18:30:07 | 显示全部楼层 来自 台湾
這個超厲害!!我喜歡!!!!!!
回复

使用道具 举报

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

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