|
Author
|
Message
|
|
Member
|

05-11-2006
, 06:52
show bomb model
|
#1
|
#include <amxmodx>
#include <engine>
public plugin_init()
{
// Plugin information
register_plugin("Teamdeagles","0.1","Ywa-NL")
register_event("CurWeapon", "weaponChange", "be", "1=1")
register_cvar("amx_teamdeagles", "1")
return PLUGIN_CONTINUE
}
public plugin_precache()
{
// Precache models
precache_model("models/topsever1/w_flashbang.mdl")
precache_model("models/topsever1/w_hegrenade.mdl")
}
public weaponChange(id)
{
if ( !get_cvar_num("amx_teamdeagles") )
return PLUGIN_CONTINUE
// Get needed information
//
// Weapon ID, Ammo, Clip
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
switch(wpnid)
{
case CSW_FLASHBANG: {
entity_set_string(id, EV_SZ_viewmodel, "models/topsever1/w_flashbang.mdl")
}
case CSW_HEGRENADE: {
entity_set_string(id, EV_SZ_viewmodel, "models/topsever1/w_hegrenade.mdl")
}
}
return PLUGIN_CONTINUE
}
this sma can work ?
Can show the design to other player ??
|
|
|
|