Raised This Month: $ Target: $400
 0% 

change weapon model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skp524
New Member
Join Date: Apr 2005
Location: hk
Old 04-16-2005 , 12:50   change weapon model
Reply With Quote #1

I want any players in my server to use my new grenade and flashbang model (change their model to my model)and then i wrote a plugin for changing weapon model .Although they downloaded my models , the models can not be changed.
Anyone can teach me to set this plugin???
skp524 is offline
Send a message via ICQ to skp524
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-16-2005 , 12:58  
Reply With Quote #2

Code:
#include <amxmodx> #include <engine> public plugin_precache() {    precache_model("models/skp/p_flashbang.mdl");    precache_model("models/skp/v_flashbang.mdl"); } public plugin_init() {    register_plugin("SKP's Flashbangs","0.10","Catwoman");    register_event("CurWeapon","event_curweapon","b"); } public event_curweapon(id) {    new clip, ammo, weapon = get_user_weapon(id,clip,ammo);    if(weapon == CSW_FLASHBANG) {       entity_set_string(id,EV_SZ_viewmodel,"models/skp/v_flashbang.mdl");       entity_set_string(id,EV_SZ_weaponmodel,"models/skp/p_flashbang.mdl");    } }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
skp524
New Member
Join Date: Apr 2005
Location: hk
Old 04-16-2005 , 13:01  
Reply With Quote #3

THX~!!!!!!!!!!i am happy that someone can help me
skp524 is offline
Send a message via ICQ to skp524
Reply



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 09:50.


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