akudidi110 发表于 2009-1-15 18:28:40

谁能帮俺改下插件?

这个是第一局用刀的。
我想改成第一局用刀和雷的。#include <amxmodx>
new bke=0
new cc=0
public event_holdwpn(id) {
        if (!is_user_alive(id)||bke==0)
               return PLUGIN_CONTINUE
        new weaponType = read_data(2)
        if (weaponType == CSW_KNIFE)
           return PLUGIN_CONTINUE
        engclient_cmd(id, "weapon_knife")
        return PLUGIN_CONTINUE
}       
public newround(id){
bke=1
engclient_cmd(id, "weapon_knife")
return PLUGIN_CONTINUE
}
public newround_event(id){
if (cc<2) {
      cc++
      bke=1
      return PLUGIN_CONTINUE
      }
bke=0
return PLUGIN_CONTINUE
}
public plugin_init(){
        register_plugin("healthI","1.0","super9999")
        register_clcmd("amx_new","newround",ADMIN_KICK,"<name/@TEAM/*(all)>")
        register_event("CurWeapon", "event_holdwpn", "be", "1=1")
        register_event("ResetHUD", "newround_event", "b")
        return PLUGIN_CONTINUE
}

akudidi110 发表于 2009-1-15 18:29:14

先谢谢啦!

a246022 发表于 2009-1-15 23:03:24

thank you!

seahoi 发表于 2009-1-30 00:51:15

0ce5ee21 路過支持一下,,謝謝分享

无知的神 发表于 2013-3-29 21:38:45

额好久的贴了路过下- -
页: [1]
查看完整版本: 谁能帮俺改下插件?