View Single Post
Author Message
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 02-13-2021 , 17:27   [req] edit please
Reply With Quote #1

Quote:
/*============================================ ====================================
Библиотеки
============================================= ====================================*/
#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>
/*============================================ ====================================
Загрузка файлов
============================================= ====================================*/
new v_knife [] = "models/jd_knife/v_knife_jd.mdl"
new p_knife [] = "models/jd_knife/p_knife_jd.mdl"
new v_knife2 [] = "models/v_knife.mdl"
new p_knife2 [] = "models/p_knife.mdl"
/*============================================ ====================================
Данные о плагине
============================================= ====================================*/
public plugin_init()
{
register_plugin("VIP KNIFE JD", "1.0", "Jack Daniel`s")
RegisterHam(Ham_Item_Deploy, "weapon_knife", "knife_user", 1)
}

public plugin_precache()
{
precache_model(v_knife)
precache_model(p_knife)
precache_model(v_knife2)
precache_model(p_knife2)
}
/*============================================ ====================================
Гл. Функция
============================================= ====================================*/
public knife_user(wpn)
{
static id; id = get_pdata_cbase(wpn, 41, 4)
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
set_pev(id, pev_viewmodel2, v_knife)
set_pev(id, pev_weaponmodel2, p_knife)
}
else
{
set_pev(id, pev_viewmodel2, v_knife2)
set_pev(id, pev_weaponmodel2, p_knife2)
}
}
/*============================================ ====================================
Концовка
============================================= ====================================*/
can edit not work i not see 3 weapon skins knife degle ak m4 awp
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY