c12g34k56 发表于 2012-12-13 10:49:23

求修改 开局刀战

希望来个好心人帮忙修改下开局刀战!允许T 放置C4源码如下:

#include <amxmodx>
#define PLUGIN"FirstRoundKnife"
#define VERSION "0.1"
#define AUTHOR"iG_os"

new bool:FirstRound = true

public switchweapon(id)
{
   if (FirstRound)
   {
      engclient_cmd(id,"weapon_knife")
   }
   return PLUGIN_CONTINUE
}

public newround(id)
{
   if (FirstRound)
   {
      set_task(3.0, "Mode_msg", id)
      }
   return PLUGIN_CONTINUE
}

public restartround(){
   FirstRound = true
   return PLUGIN_CONTINUE
}

public end_round(){
   FirstRound = false
   return PLUGIN_CONTINUE
}

public Mode_msg(id)
{
   new msg
   format(msg,63,"第一局刀战模式!")
   set_hudmessage(245, 255, 250, -1.0, 0.25, 0, 0.01, 15.0, 0.01, 0.01, -1)
   show_hudmessage(id,msg)
}

public plugin_init(){
   register_plugin(PLUGIN,VERSION,AUTHOR)
   register_event("ResetHUD", "newround", "be")
   register_event("TextMsg", "restartround", "a", "2&#Game_C", "2&#Game_w")
   register_event("SendAudio", "end_round", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw")
   register_event("CurWeapon", "switchweapon", "be", "1=1","2!29")
}

c12g34k56 发表于 2012-12-13 10:50:14

如果你有成品发过我更好   879qi@163.com

c12g34k56 发表于 2012-12-13 17:19:46

@ 版主@ 超人@ 拯救者~~~~~

99无敌 发表于 2012-12-13 20:00:43

$$rmb$$----------------一般这句话出来,就有高手放出答案了

385897365 发表于 2012-12-14 09:15:17

c12g34k56 发表于 2012-12-14 09:48:43

先谢谢了 试验了下 没有大问题就是没有把编码保存成UTF-8 啊。。。中文成了乱码   另外50点通币求哥们修改的源码   再次感谢

c12g34k56 发表于 2012-12-14 09:51:25

385897365 发表于 2012-12-14 09:15 static/image/common/back.gif
改了一下你可以试试

另外50点通币求哥们修改的源码   再次感谢!!!虽然不多,表个心意吧

c12g34k56 发表于 2012-12-14 11:03:20

=。=出现吧@385897365    闪现出来

385897365 发表于 2012-12-14 11:20:49

99无敌 发表于 2012-12-14 21:29:10

对吧?虽然我没有直接给你插件。但是我那一句话出来。你的问题不就解决了嘛
页: [1] 2
查看完整版本: 求修改 开局刀战