Raised This Month: $62 Target: $400
 15% 

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 online now
thEsp
Senior Member
Join Date: Aug 2017
Location: Gjilan, Albania
Old 06-12-2019 , 01:53   Re: Invisible Weapon Only
Reply With Quote #2

Invisible when you drop it?
__________________
54 68 61 6e 6b 20 79 6f 75 20 66 6f 72 20 67 65 74 74 69 6e 67 20 6d 79 20 61 74 74 65 6e 74 69 6f 6e 21
__________________
YouTube channel
GitHub
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 online now
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 online now
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 online now
<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 online now
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 online now
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 online now
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Traphouse
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?
__________________
Knife Bounty
CS Battle Royale (PUBG)
Contact/Ticket System

I don't sip the lean, used to love codeine cuz I love to dream
edon1337 is offline
Send a message via Skype™ to edon1337
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 16:44.


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