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

[CSGO] Invisible Grenades & Knife for Terrorist


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
srvmil
Senior Member
Join Date: Oct 2010
Old 03-01-2018 , 07:04   [CSGO] Invisible Grenades & Knife for Terrorist
Reply With Quote #1

Can somebody make a plugin that can have some invisibility to the knife and grenades at certain percentage?

Eg, 30% invisible for knife and 15% for grenades. Is this possible?

Make sure it is only for terrorist while CT ones are still visible.


EDIT: Viewing knife in your hand would stay visible but are invisible on worldmodel (CT seeing T knife are invisible).

Last edited by srvmil; 03-01-2018 at 09:03.
srvmil is offline
srvmil
Senior Member
Join Date: Oct 2010
Old 03-02-2018 , 08:32   Re: [CSGO] Invisible Grenades & Knife for Terrorist
Reply With Quote #2

Anyone? Will pay if necessary
srvmil is offline
srvmil
Senior Member
Join Date: Oct 2010
Old 03-03-2018 , 00:16   Re: [CSGO] Invisible Grenades & Knife for Terrorist
Reply With Quote #3

Would it be something like this?

PHP Code:
#include <sdkhooks>
#include <sdktools>

#define CSAddon_NONE            0
#define CSAddon_Flashbang1      (1<<0)
#define CSAddon_Flashbang2      (1<<1)
#define CSAddon_HEGrenade       (1<<2)
#define CSAddon_SmokeGrenade    (1<<3)
#define CSAddon_C4              (1<<4)
#define CSAddon_DefuseKit       (1<<5)
#define CSAddon_PrimaryWeapon   (1<<6)
#define CSAddon_SecondaryWeapon (1<<7)
#define CSAddon_Holster         (1<<8) 

public OnPluginStart()
{
   
RegConsoleCmd("sm_test"test);
}

public 
Action:test(userargs)
{
    for(new 
client 1client <= MaxClientsclient++)
    {
        if(
IsClientInGame(client))
        {
            
SDKHookEx(clientSDKHook_PostThinkPostOnPostThinkPost);
            
SetEntProp(clientProp_Send"m_nRenderFX"RENDERFX_NONE);
            
SetEntProp(clientProp_Send"m_nRenderMode"RENDER_NONE);
        }
    }



    new 
entity MaxClients+1;

    while( (
entity FindEntityByClassname(entity"weaponworldmodel")) != -)
    {
        
SetEntProp(entityProp_Send"m_nModelIndex"0);
    }
}

public 
OnPostThinkPost(client)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"))
    
    if (
GetClientTeam(client) == CS_TEAM_T)
   {
    
SetEntProp(clientProp_Send"m_iSecondaryAddon"weapon_knife);
    
SetEntProp(clientProp_Send"m_iAddonBits"weapon_molotov);
    }

I got this code from here.
srvmil is offline
srvmil
Senior Member
Join Date: Oct 2010
Old 03-06-2018 , 18:58   Re: [CSGO] Invisible Grenades & Knife for Terrorist
Reply With Quote #4

Anyone? The last post I tried doesn't work. Does anyone know what I did wrong in the code?
srvmil is offline
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 10:43.


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