图 1.
为什么我改TR的模组会有个人里面求大大帮我 要怎么解决 求帮
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>
//new const v_bossclaw[] ={ "models/show/v_bossknife.mdl" }
//new const p_bossclaw[] ={ "models/show/p_bossknife.mdl" }
public plugin_init()
{
register_plugin("BossMod", "1.3", "SHow")
register_event("CurWeapon", "curwep", "be", "1=1")
RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
}
public Player_Spawn_Post( id )
{
if(!is_user_alive(id))
return
if(cs_get_user_team(id) == CS_TEAM_T)
{
entity_set_string(id, EV_SZ_viewmodel, "models/show/v_bossknife.mdl" )
entity_set_string(id, EV_SZ_weaponmodel, "models/show/p_bossknife.mdl" )
}
}
public curwep(id)
{
new wpnID = read_data(2)
if(cs_get_user_team(id) == CS_TEAM_T)
{
if(wpnID != CSW_KNIFE)
{
engclient_cmd(id, "weapon_knife")
set_user_maxspeed(id, get_cvar_float("boss_speed"))
entity_set_string(id, EV_SZ_viewmodel, "models/show/v_bossknife.mdl" )
entity_set_string(id, EV_SZ_weaponmodel, "models/show/p_bossknife.mdl" )
}
}
return PLUGIN_HANDLED
}
public plugin_precache()
{
precache_model("models/show/v_bossknife.mdl")
precache_model("models/v_knife.mdl")
precache_model("models/show/p_bossknife.mdl" )
}