|
这个是第一局用刀的。
我想改成第一局用刀和雷的。- #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
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|