PHP Code:
public knife(id) {
knife_model[id] = 0
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/v_knife.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl")
}
}
public butcher(id) {
knife_model[id] = 1
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_butcher.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/knife-mod/p_butcher.mdl")
}
}
public bak(id) {
knife_model[id] = 2
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_bak.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/knife-mod/p_bak.mdl")
}
}
public merce(id) {
knife_model[id] = 3
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_merce.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/knife-mod/p_merce.mdl")
}
}
public saber(id) {
knife_model[id] = 4
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_saber.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/knife-mod/p_saber.mdl")
}
}
public saber(id) {
knife_model[id] = 5
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_clilclo.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/knife-mod/p_clilclo.mdl")
}
}
public saber(id) {
knife_model[id] = 6
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_machete.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/knife-mod/p_machete.mdl")
}
}
public saber(id) {
knife_model[id] = 7
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_trout.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/knife-mod/p_trout.mdl")
}
}
public saber(id) {
knife_model[id] = 8
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_kungfu.mdl")
entity_set_string(id, EV_SZ_weaponmodel, "models/knife-mod/p_kungfu.mdl")
}
}
public saber(id) {
knife_model[id] = 9
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
entity_set_string(id, EV_SZ_viewmodel, "models/knife-mod/v_pistol.mdl")
}
}