Raised This Month: $ Target: $400
 0% 

Invisible


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-26-2009 , 03:15   Invisible
Reply With Quote #1

Is it possible to let player to see their teammate at 70% when they are invisible. ?

But enemy can't see.
Mr.Noobie is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-26-2009 , 07:44   Re: Invisible
Reply With Quote #2

Yes.
__________________
hleV is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-26-2009 , 09:46   Re: Invisible
Reply With Quote #3

Quote:
Originally Posted by hleV View Post
Yes.
How can help me ?
Mr.Noobie is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-29-2009 , 01:17   Re: Invisible
Reply With Quote #4

Sorry for the double posting.

Can someone show me how ?
Mr.Noobie is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 08-29-2009 , 02:23   Re: Invisible
Reply With Quote #5

PHP Code:
    set_es(es_handle,ES_RenderMode,kRenderTransTexture)
    
set_es(es_handle,ES_RenderAmt,0
hzqst is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-29-2009 , 02:56   Re: Invisible
Reply With Quote #6

Quote:
Originally Posted by hzqst View Post
PHP Code:
    set_es(es_handle,ES_RenderMode,kRenderTransTexture)
    
set_es(es_handle,ES_RenderAmt,0
How to use it ?

Like this :

PHP Code:
if ( user_aliveid ) & get_user_zombieid )
{
           ( 
es_handleES_RenderModekRenderTransTexture )
           
set_eses_handleES_RenderAmt70 )
 } 
Mr.Noobie is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 08-29-2009 , 05:14   Re: Invisible
Reply With Quote #7

PHP Code:
register_forward(FM_AddToFullPack,"fw_AddToFullPack_Post",1
PHP Code:
public fw_AddToFullPack_Post(es_handle,e,ent,host,hostflags,player,pSet){
 if(!
playerFMRES_IGNORED
//the code
//host = id
//ent = the entity you saw
 
return FMRES_IGNORED

hzqst is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-29-2009 , 05:34   Re: Invisible
Reply With Quote #8

Quote:
Originally Posted by hzqst View Post
PHP Code:
register_forward(FM_AddToFullPack,"fw_AddToFullPack_Post",1
PHP Code:
public fw_AddToFullPack_Post(es_handle,e,ent,host,hostflags,player,pSet){
 if(!
playerFMRES_IGNORED
//the code
//host = id
//ent = the entity you saw
 
return FMRES_IGNORED


I don't understand.

Here is the code:

PHP Code:
/*================================================================================
 
    -----------------------------------
    -*- [ZP] Class : asdsadadad -*-
    -----------------------------------
 
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
 
    asddasdsads.
 
================================================================================*/
#include <amxmodx>
#include <zombieplague>
#include <fun>
 
new g_zclass_asdsa
 
new const zclass_name[] = { "asdsa" }
new const 
zclass_info[] = { "asd" }
new const 
zclass_model[] = { "asd" }
new const 
zclass_clawmodel[] = { "v_knife_bloody.mdl" }
const 
zclass_health 1500
const zclass_speed 270
const Float:zclass_gravity 1.0
const Float:zclass_knockback 1.0
 
public plugin_init()
{
        
register_plugin"[ZP] Class : asd""1.0""asd" )
        
register_forwardFM_AddToFullPack"fw_AddToFullPack_Post")  
}
 
public 
plugin_precache()
{
 
g_zclass_asdsa zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
}
 
public 
zp_user_infected_postidinfector )
{
 if ( 
zp_get_user_zombie_classid ) == g_zclass_asdsa )
 {
             
set_user_renderingidkRenderFxGlowShell000kRenderTransAlpha)
 }
}

public 
fw_AddToFullPack_Postes_handleeent,hosthostflagsplayerpSet )
{
    if ( !
player FMRES_IGNORED
    
es_handleES_RenderModekRenderTransTexture )
    
set_eses_handleES_RenderAmt70 )
    return 
FMRES_IGNORED

Like this ?
Mr.Noobie is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-29-2009 , 22:24   Re: Invisible
Reply With Quote #9

Help please.
Mr.Noobie is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 08-29-2009 , 22:55   Re: Invisible
Reply With Quote #10

PHP Code:
public fw_AddToFullPack_Postes_handleeent,hosthostflagsplayerpSet )
{
    if ( !
player FMRES_IGNORED
    
if(get_user_team(host) == get_user_team(ent) && get_user_zombie(ent)){
      ( 
es_handleES_RenderModekRenderTransTexture )
      
set_eses_handleES_RenderAmt70 )
    }
    return 
FMRES_IGNORED

hzqst 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 15:15.


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