Raised This Month: $ Target: $400
 0% 

different Knives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pur3Biatch
Junior Member
Join Date: Jun 2011
Location: Czech Republic
Old 08-10-2011 , 11:21   Re: different Knives
Reply With Quote #1

Menu ->
New AMXX Menu System by Emp`

Change knife model ->
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Plugin"
#define VERSION "1.0"
#define AUTHOR "Pur3"

new const p_Model[] = "models/p_m134.mdl"  // way to p_model
new const v_Model[] = "models/v_m134.mdl" // way to v_model

new bool:HasBerseker[33] = false

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd"say /Berserk""Berserk")
    
    
register_event("CurWeapon" "cur_weapon" "be" "1=1")
}

public 
Berserk(id)
{
    
//...
    
HasBerseker[id] = true;
    
//...
}

public 
cur_weapon(id)
{
    if(
read_data(2) == CSW_KNIFE)
    {
        if(
HasBerseker[id])
        {
            
set_pev(idpev_viewmodel2v_Model)
            
set_pev(idpev_weaponmodel2p_Model)
        }
    }
    return 
PLUGIN_CONTINUE

Pur3Biatch is offline
Send a message via Skype™ to Pur3Biatch
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 03:22.


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