Raised This Month: $ Target: $400
 0% 

Invisible Weapon Only


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 06-11-2019 , 20:05   Invisible Weapon Only
Reply With Quote #1

I want to make weapon invisible but i dont know if is possible

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

new const g_model[] = "models/v_knife.mdl"

public plugin_init() 
{
    
    register_forward( FM_AddToFullPack, "fwdAddToFullPack_Post", 1 );
}

public fwdAddToFullPack_Post( es_handle, e, ent, host, hostflags, player, pset )
{
    static string[32]

    if (is_user_alive(player))
    {
        pev(player, pev_classname, string, sizeof string - 1)

        if (equali(string, g_model))
        {
            set_es( es_handle, ES_RenderMode, kRenderTransAlpha );
            set_es( es_handle, ES_RenderAmt, 0 );
            set_es( es_handle, ES_Effects, EF_NODRAW );
        }
    }
}

Last edited by Saint Sinner; 06-12-2019 at 03:32.
Saint Sinner is offline
 


Thread Tools
Display Modes

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:31.


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