AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Invisibile Weapon + hands (https://forums.alliedmods.net/showthread.php?t=103497)

AcidoX 09-13-2009 14:51

Invisibile Weapon + hands
 
Hi, i wanna ask is it possible to make a weapon + hands invisible like r_drawmodels 0 on 1.5 Counter-strike?

Arkshine 09-13-2009 14:52

Re: Invisibile Weapon + hands
 
set_pev( id, pev_viewmodel, 0 );

AcidoX 09-13-2009 14:55

Re: Invisibile Weapon + hands
 
omg :D thnx man :)

edit:

Whats wrong?

Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Weapon Invis"
#define VERSION "1.0"
#define AUTHOR "AciD"

new g_WeaponInvisible

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd( "say /wi", "WeaponInvis")
}

public WeaponInvis(id)
{
    if(is_user_connected(id)) {
        set_pev(id, pev_viewmodel, 0)
        g_WeaponInvisible[id] = true
    }
}

public client_connect(id)
{
    g_WeaponInvisible[id] = false
}


avril-lavigne 09-14-2009 10:43

Re: Invisibile Weapon + hands
 
I m using cs models with No hands..... without any plugins ) cool

avril-lavigne 09-14-2009 10:44

Re: Invisibile Weapon + hands
 
its also possible on non steam

alias m_pitch r_drawviewmodel 0


public WeaponInvis(id)
{
if(is_user_connected(id)) {
set_pev(id, pev_viewmodel, 0)
g_WeaponInvisible[id] = true
}
}

public client_connect(id) // >>>????? disconect may be?
{
g_WeaponInvisible[id] = false
}

AcidoX 09-14-2009 13:50

Re: Invisibile Weapon + hands
 
Nobody? :(

lazarev 09-15-2009 15:17

Re: Invisibile Weapon + hands
 
Quote:

Originally Posted by AcidoX (Post 932738)
Nobody? :(

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Weapon Invis Advanced"
#define VERSION "1.0"
#define AUTHOR "Juice"

new WeaponInv[33]
new 
weapon_invis_pcvar

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
weapon_invis_pcvar register_cvar("amx_wi","1")
    
register_clcmd("say /wi""WeaponInvis")
    
register_event("CurWeapon""cur_weapon""be""1=0""2=29")
}

public 
client_putinserver(id)    WeaponInv[id]=false

public client_disconnect(id)    WeaponInv[id]=true

public WeaponInvis(id) {
    if(
get_pcvar_num(weapon_invis_pcvar)) 
    {
    if(!
WeaponInv[id])
    {
    
set_pev(idpev_viewmodel0)
    
client_print(id,print_chat,"Your weapon is invisible!")
    
WeaponInv[id] = true
         
}
    else
    {
    
set_pev(idpev_viewmodel1)
    
client_print(id,print_chat,"Your weapon is visible now!")
    
WeaponInv[id]= false
        
}
    }
}

public 
cur_weaponid ) {
    if(
WeaponInv[id]) {
    
set_pev(idpev_viewmodel1)
    }


try this, works with one weapon :P


All times are GMT -4. The time now is 11:58.

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