Raised This Month: $ Target: $400
 0% 

show bomb model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vincentwind286
Member
Join Date: May 2006
Old 05-11-2006 , 06:52   show bomb model
Reply With Quote #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 ??
vincentwind286 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode