to make everyone on a server have a certain weapon model:
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_precache()
{
precache_model("models/v_mymodel.mdl")
precache_model("models/p_mymodel.mdl")
}
public plugin_init()
{
register_event("CurWeapon","event_curweapon","b")
}
public event_curweapon(id)
{
new ammo, clip
if(get_user_weapon(id,ammo,clip) == CSW_AK47)
{
entity_set_string(id,EV_SZ_viewmodel,"models/v_mymodel.mdl")
entity_set_string(id,EV_SZ_weaponmodel,"models/p_mymodel.mdl")
}
}
that will change the model of what you see when your holding the gun and when someone looks at you holding the gun.
just change CSW_AK47 to CSW_whatever gun the model is for.
and change mymodel (everywhere it is lsited) into the model name.
This will only work for counter-strike
__________________