her is the code but u have to put you things in it ok /*
* Knife Model Changer v1.0
* Created by Dontask-jello
* Assissted by Don Juan-jello
*
HTTP://www.jello-net.com
* For AMXX 1.0
* 3/14/2005
*============================================ ===============================
* Description:
* This plugin will change the gun model on your server from
* the default one to the chucky model.
*============================================ ===============================
* Cvars:
* ck_on <1|0> : Enables/Disables all plugin functionality.
*
*
*/
#include <amxmodx>
#include <engine>
#include <amxmisc>
public plugin_init()
{
// Plugin Info
register_plugin("Gun Model Change","1.0","Dontask-jello")
register_event("CurWeapon", "weaponChange", "be", "1=1")
register_cvar("ck_on", "1")
return PLUGIN_CONTINUE
}
public plugin_precache()
{
precache_model("models/darthmaul_knife.mdl")
precache_model("models/darthmaul_p_knife.mdl")
return PLUGIN_CONTINUE
}
public weaponChange(id)
if (get_cvar_num("ck_on"))
{
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
if (wpnid == CSW_KNIFE) {
entity_set_string(id, EV_SZ_viewmodel, "models/darthmaul_knife.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/darthmaul_p_knife.mdl")
}
}