PHP Code:
new garras[] = "models/garras.mdl"
PHP Code:
public plugin_init()
register_event("CurWeapon", "CurWeapon", "be","1=1")
PHP Code:
public plugin_precache()
precache_model("models/garras.mdl")
PHP Code:
public CurWeapon(id){
new weaponID = read_data(2)
if(weaponID != CSW_KNIFE)
return PLUGIN_CONTINUE
if(cs_get_user_team(id) == CS_TEAM_T && is_user_alive(id)){
set_pev(id, pev_viewmodel2, "models/garras.mdl")
}
return PLUGIN_CONTINUE
}
Thanks, it works but I get 1 warning.