Raised This Month: $ Target: $400
 0% 

Help with invisibility


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-31-2016 , 08:43   Re: Help with invisibility
Reply With Quote #7

PHP Code:

public think_InvisibilityEnt )
{
 if( 
Ent != iEnt )
  return 
FMRES_IGNORED;
  
 
g_t_time += 0.1;
 
entity_set_floatEntEV_FL_nextthinkg_t_time );
 
//set_pev( Ent, pev_nextthink, g_t_time );
 //entity_set_float( Ent, EV_FL_nextthink, get_gametime( ) + 0.1 );
 
 
new iWeapon;
 for( new 
1<= g_iMaxPlayersi++ )
 { 
  if( 
is_user_alive(i) )
  {

     
iWeapon get_user_weapon);
    if( ( 
iWeapon == CSW_KNIFE || iWeapon == CSW_SMOKEGRENADE || iWeapon == CSW_TMP) && get_user_team) == )
   {
    new 
Float:fVec], Float:iSpeed;
    
entity_get_vectoriEV_VEC_velocityfVec );
    
iSpeed vector_lengthfVec);
      
set_user_renderingikRenderFxNone000kRenderTransAlphaiSpeed 255 floatround(iSpeed 2) : 255 );
   
 }
 }
}
 return 
FMRES_IGNORED;


Last edited by siriusmd99; 05-31-2016 at 08:48.
siriusmd99 is offline
 



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 18:40.


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