Raised This Month: $51 Target: $400
 12% 

set knife model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Closer456
Member
Join Date: May 2013
Old 06-10-2013 , 18:07   set knife model
Reply With Quote #1

whats wrong? its not working for some reason..
PHP Code:
#include <amxmodx>
#include <Vexd_Utilities>

new model[32]
//----------------------------------------------------------------------------------------------
public plugin_init()
{
    
register_event("ResetHUD""newSpawn""b")
    
register_event("CurWeapon""weaponChange""be""1=1")

}
//----------------------------------------------------------------------------------------------
public plugin_precache()
{
    
precache_model("models/cso/v_knife_w.mdl")
    
precache_model("models/cso/v_knife.mdl")
}
//-----------------------------------------------------------------------------------------------
public switchmodel(id)
{
    
cs_get_user_model(idmodelcharsmax(model))
    if ( !
is_user_alive(id) || equal(model"Elite") != ||  equal(model"Monster11") != 1|| equal(model"AdminM") != || equal(model"AdminM1") != || equal(model"sas") != 1
    
    return

    new 
clipammowpnid get_user_weapon(idclipammo)
    if ( 
wpnid == CSW_KNIFE ) {
        
Entvars_Set_String(idEV_SZ_viewmodel"models/cso/v_knife_w.mdl")
    }
}
//----------------------------------------------------------------------------------------------
public weaponChange(id)
{
    
cs_get_user_model(idmodelcharsmax(model))
    if (
equal(model"Elite") != ||  equal(model"Monster11") != 1|| equal(model"AdminM") != || equal(model"AdminM1") != || equal(model"sas") != 1
    return

    new 
wpnid read_data(2)

    if ( 
wpnid != CSW_KNIFE ) return
    
switchmodel(id)
    



Last edited by Closer456; 06-10-2013 at 21:17.
Closer456 is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 06-10-2013 , 18:54   Re: set knife model
Reply With Quote #2

use Ham_Deploy
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-10-2013 , 20:40   Re: set knife model
Reply With Quote #3

Quote:
#include <amxmod>
#include <Vexd_Utilities>
Why haven't you updated to AmxModX?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Closer456
Member
Join Date: May 2013
Old 06-10-2013 , 21:04   Re: set knife model
Reply With Quote #4

oh lol xD
i didnt notice that cause i really want to get it done asap
Closer456 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-11-2013 , 00:05   Re: set knife model
Reply With Quote #5

Don't use vexd_utilities or anything that is part of amxmod_compact.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-11-2013 , 07:55   Re: set knife model
Reply With Quote #6

I think he uses Amx Mod not Amx Mod X
TheDS1337 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 08:29.


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