Raised This Month: $ Target: $400
 0% 

[HELP]Change weapon model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-09-2009 , 11:24   [HELP]Change weapon model
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>
#include <fun>
#include <cstrike>
#include <Vexd_Utilities>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_clcmd("say /ultranade","nade_event")
 
}
public 
plugin_precache()
{
precache_model("models/v_ultranade.mdl")
precache_model("models/p_ultranade.mdl")
precache_model("models/w_ultranade.mdl")
}
public 
nade_event(id)
{
 
set_task(0.1,"nadening",id,"",0,"b")
 
}

public 
nadening(id)
{

new 
Weapon=get_user_weapon(id)
if(
Weapon==CSW_HEGRENADE)
{
Entvars_Set_String(idEV_SZ_viewmodel,"models/v_ultranade.mdl")
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 
i can change the hegrenades model with this code...[when i use /ultranade]
but the model changes to default model when i throw the bomb..

what should i do?
byetovice 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 17:41.


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