Raised This Month: $ Target: $400
 0% 

[SOLVED]change weapon model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 04-07-2009 , 11:05   Re: change weapon model
Reply With Quote #3

PHP Code:
// IN PLUGIN INIT!!! //
register_event("CurWeapon","ev_CurWeapon""be""1=1")

public 
ev_CurWeapon(id)
{
    if(!
is_user_connected(id) || !is_user_alive(id)) 
    {
        return 
PLUGIN_HANDLED;
    }
           new 
Weapon_Id read_data(2)

           if(
Weapon_Id == CSW_KNIFE 
    {
                     
set_pev(idpev_viewmodel2"models/v_knife_your.mdl")
           }
           return 
PLUGIN_CONTINUE;

xbatista is offline
Send a message via Skype™ to xbatista
 



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 02:23.


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