Raised This Month: $ Target: $400
 0% 

Reaplce knfie with medickit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-06-2009 , 14:37   Re: Reaplce knfie with medickit
Reply With Quote #1

This is a way, but, you should create a specific folder in models/ folder, with for example the name of your plugin, as you have changed animations of the model.

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "Knife Model"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define    m_pPlayer                41

new g_iVModel

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Item_Deploy"weapon_knife""Knife_Deploy"1)
    
g_iVModel engfunc(EngFunc_AllocString"models/v_medickit.mdl")
}

public 
plugin_precache()
{
    
precache_model("models/v_medickit.mdl")
}

public 
Knife_DeployiEnt )
{
    
set_pevget_pdata_cbase(iEntm_pPlayer4), pev_viewmodelg_iVModel)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 01:40.


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