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

Invisible Weapon Only


Post New Thread Reply   
 
Thread Tools Display Modes
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
thEsp
BANNED
Join Date: Aug 2017
Old 06-12-2019 , 01:53   Re: Invisible Weapon Only
Reply With Quote #2

Invisible when you drop it?
thEsp is offline
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 06-12-2019 , 02:54   Re: Invisible Weapon Only
Reply With Quote #3

In the hands..Maybe is not possible..If is possible please write a code

Last edited by Saint Sinner; 06-12-2019 at 08:38.
Saint Sinner is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-12-2019 , 10:57   Re: Invisible Weapon Only
Reply With Quote #4

Set the viewmodel to nothing.
__________________
HamletEagle is offline
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 06-12-2019 , 12:15   Re: Invisible Weapon Only
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Set the viewmodel to nothing.
this is your answer? I want to know if is possible or not to make weapon invisible
Saint Sinner is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-12-2019 , 12:30   Re: Invisible Weapon Only
Reply With Quote #6

Viewmodel rendering is handled client-side, you can't change it.
__________________

Last edited by <VeCo>; 06-12-2019 at 12:30.
<VeCo> is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-12-2019 , 12:34   Re: Invisible Weapon Only
Reply With Quote #7

Quote:
Originally Posted by Saint Sinner View Post
this is your answer? I want to know if is possible or not to make weapon invisible
What's the difference between making it invisible and making it nothing? There is no visible difference, right?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-12-2019 , 14:01   Re: Invisible Weapon Only
Reply With Quote #8

Quote:
Originally Posted by Saint Sinner View Post
this is your answer? I want to know if is possible or not to make weapon invisible
Sorry for daring to try to help you. Won't happen again.
__________________
HamletEagle is offline
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 06-12-2019 , 16:01   Re: Invisible Weapon Only
Reply With Quote #9

Quote:
Originally Posted by OciXCrom View Post
What's the difference between making it invisible and making it nothing? There is no visible difference, right?
becouse can stop many hacks..if p model is solid not

Last edited by Saint Sinner; 06-12-2019 at 16:02.
Saint Sinner is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-12-2019 , 16:02   Re: Invisible Weapon Only
Reply With Quote #10

Quote:
Originally Posted by Saint Sinner View Post
becouse can stop many hacks..if p model is solid not
But, how?
__________________
edon1337 is offline
Old 06-12-2019, 16:06
Saint Sinner
This message has been deleted by Saint Sinner.
Reply


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 19:20.


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