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

Invisibile Weapon + hands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 09-13-2009 , 14:51   Invisibile Weapon + hands
Reply With Quote #1

Hi, i wanna ask is it possible to make a weapon + hands invisible like r_drawmodels 0 on 1.5 Counter-strike?
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-13-2009 , 14:52   Re: Invisibile Weapon + hands
Reply With Quote #2

set_pev( id, pev_viewmodel, 0 );
__________________
Arkshine is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 09-13-2009 , 14:55   Re: Invisibile Weapon + hands
Reply With Quote #3

omg 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
}
__________________
Who need lockerz invite? Pm me.

Last edited by AcidoX; 09-13-2009 at 16:58.
AcidoX is offline
Send a message via Skype™ to AcidoX
Old 09-13-2009, 15:09
AcidoX
This message has been deleted by AcidoX. Reason: doublepost
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-14-2009 , 10:43   Re: Invisibile Weapon + hands
Reply With Quote #4

I m using cs models with No hands..... without any plugins ) cool
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-14-2009 , 10:44   Re: Invisibile Weapon + hands
Reply With Quote #5

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
}
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 09-14-2009 at 10:46.
avril-lavigne is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 09-14-2009 , 13:50   Re: Invisibile Weapon + hands
Reply With Quote #6

Nobody?
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
lazarev
Veteran Member
Join Date: Sep 2008
Old 09-15-2009 , 15:17   Re: Invisibile Weapon + hands
Reply With Quote #7

Quote:
Originally Posted by AcidoX View Post
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

Last edited by lazarev; 09-21-2009 at 12:34.
lazarev 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 02:24.


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