Jump to content
Sign in to follow this  
acme22

Progametajam cs 1.6

Recommended Posts

Ka izvilkt cita veida granatas piemeram he granata un flash granatu samainit

ka ari vai ir iespeja samainit ierocim skinu luk divi plugini ar kuriem esmu samainijis 1 granatas skinu un digla skinu

 

{
register_plugin("VIP smokegrenade", "1.1", "Sashqqa_[18rus]")
RegisterHam(Ham_Item_Deploy, "weapon_smokegrenade", "smokegrenade_user", 1)
}

public plugin_precache()
{
precache_model(v_smokegrenade)
precache_model(p_smokegrenade)
precache_model(v_smokegrenade2)
precache_model(p_smokegrenade2)
}

public smokegrenade_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_smokegrenade)
set_pev(id, pev_weaponmodel2, p_smokegrenade)
}
else
{
set_pev(id, pev_viewmodel2, v_smokegrenade2)
set_pev(id, pev_weaponmodel2, p_smokegrenade2)
}
}

 

 

------------------------

#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>
 
new v_deagle [] = "models/v_deagle.mdl"
new p_deagle [] = "models/p_deagle.mdl"
new v_deagle2 [] = "models/v_deagle.mdl"
new p_deagle2 [] = "models/p_deagle.mdl"

public plugin_init()
{
register_plugin("VIP deagle", "1.1", "Sashqqa_[18rus]")
RegisterHam(Ham_Item_Deploy, "weapon_deagle", "deagle_user", 1)
}
 
public plugin_precache()
{
precache_model(v_deagle)
precache_model(p_deagle)
precache_model(v_deagle2)
precache_model(p_deagle2)
}
 
public deagle_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_deagle)
set_pev(id, pev_weaponmodel2, p_deagle)
}
else
{
set_pev(id, pev_viewmodel2, v_deagle2)
set_pev(id, pev_weaponmodel2, p_deagle2)
}
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.