|
发表于 2007-4-13 20:19:12
|
显示全部楼层
|阅读模式
来自 中国–福建–泉州–晋江市
请教斑竹
#define MAXPLAYERS 32
new iUserLastWeaponID[MAXPLAYERS + 1]
new const sWeaponBox[] = "weaponbox"
new const sNamedEnt_ArmouryEntity[] = "armoury_entity"
new const sWeaponKnife[] = "weapon_knife"
new const sModel_Weaponbox_w[] = "models/w_weaponbox.mdl"
//new const sModel_FlashBang_w[] = "models/w_flashbang.mdl"
new const sModel_HeGrenade_w[] = "models/w_hegrenade.mdl"
new const sModel_SmokeGrenade_w[] = "models/w_smokegrenade.mdl"
new const sModel_usp_w[] = "models/w_usp.mdl" 这里是我添加的usp手枪
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_event("CurWeapon", "event_CurWeapon_CheckWeapon", "be", "1>0", "2!4", "2!9", "2!29"/*, "2!25"*/)这里代表什么
register_forward(FM_SetModel, "FM_SetModel_SetKnife")
}
public event_CurWeapon_CheckWeapon(id)
{
iUserLastWeaponID[id] = read_data(2)
}
public FM_SetModel_SetKnife(iEnt, sModel[])
{
if ( !pev_valid(iEnt)
|| equal(sModel, sModel_Weaponbox_w)
|| ( !equal(sModel, sModel_HeGrenade_w) && !equal(sModel, sModel_SmokeGrenade_w) && !equal(sModel, sModel_usp_w还有这里)/* && !equal(sModel, sModel_FlashBang_w)*/ ) )
return FMRES_IGNORED
为什么添加了 在游戏中不能实现仍usp换刀呢
请斑竹帮帮忙 指点一下 谢谢了
可以在1.76c编译 |
|