谁能帮俺改下插件?
这个是第一局用刀的。我想改成第一局用刀和雷的。#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
} 先谢谢啦! thank you! 0ce5ee21 路過支持一下,,謝謝分享 额好久的贴了路过下- -
页:
[1]