SoulsHunter, ale podmiana na serwerze? Są pluginy do tego, choć ja wole napisać własny... typu
Kod:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <cstrike>
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1")
}
public plugin_precache()
{
precache_model("models/p_noz.mdl")
precache_model("models/v_noz.mdl")
}
public Event_CurWeapon(id)
{
if(!is_user_alive(id) || !is_user_connected(id))
return PLUGIN_CONTINUE
new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])
if(weapon == CSW_KNIFE)
{
entity_set_string(id, EV_SZ_viewmodel, "models/v_noz.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/p_noz.mdl")
}
return PLUGIN_CONTINUE
}