Raised This Month: $ Target: $400
 0% 

get_user_buttom


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fireattack
Senior Member
Join Date: Jul 2008
Old 07-24-2011 , 15:13   Re: get_user_buttom
Reply With Quote #1

Your code won't work, check this (ConnoMcLeod's Furien):

PHP Code:
public plugin_init( )
{
    new 
iEnt
    iEnt 
create_entity("info_target")
    
set_pev(iEntpev_classname"check_speed")
    
set_pev(iEntpev_nextthinkget_gametime() + 0.1)
    
register_think("check_speed""Set_Furiens_Visibility")
}
    
    
public 
Set_Furiens_VisibilityiEnt )
{
    
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 0.1)

    new 
iPlayers[MAX_PLAYERS], iNumidFloat:fVecVelocity[3], iSpeed

    get_players
(iPlayersiNum"ae"g_iFuriensTeam == CS_TEAM_T "TERRORIST" "CT")

    for(new 
ii<iNumi++)
    {
        
id iPlayers[i]
        if( 
get_user_weapon(id) == CSW_KNIFE )
        {
            
entity_get_vector(idEV_VEC_velocityfVecVelocity)
            
iSpeed floatroundvector_length(fVecVelocity) )
            if( 
iSpeed g_iInvisFactor*255 )
            {
                
set_user_rendering(idkRenderFxNone000kRenderTransAlphaiSpeed/g_iInvisFactor)
            }
            else
            {
                
set_user_rendering(idkRenderFxNone000kRenderNormal0)
            }
        }
        else
        {
            
set_user_rendering(idkRenderFxNone000kRenderNormal0)
        }
    }


Last edited by fireattack; 07-24-2011 at 15:15.
fireattack is offline
2reason2kill
Senior Member
Join Date: Feb 2011
Old 07-24-2011 , 15:23   Re: get_user_buttom
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
Define what? Do you only want if user moving via his own buttons to be visible or also visible if falling?
1)Do i need to Define the Buttoms?


2)His own buttoms

And when Hes Not Moving He get invisble.
2reason2kill 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 01:08.


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