Raised This Month: $ Target: $400
 0% 

if player jump give some speed a. gravity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
samba88
Junior Member
Join Date: Jul 2011
Old 07-27-2011 , 18:11   Re: if player jump give some speed a. gravity
Reply With Quote #3

Merci

one questen
how can i do if i jump i got speed, but then im on ground and walk maxspeed is standart...
PHP Code:
public fw_CmdStartid handle seed ) {
    

    
entity_set_float(idEV_FL_fuser20.0)    
    
    static 
Floatv_gravity
    
new team
    team 
get_team(id)
    
    if(
team == 1)
    {

        if ( ( 
get_uchandle UC_Buttons ) & IN_JUMP ) && !( pevid pev_oldbuttons ) & IN_JUMP ) && ( pevid pev_flags ) & FL_ONGROUND ) )
        {
            
            
v_gravity 0.96
            set_user_maxspeed
(idget_cvar_float("v_speed"))
            
set_user_gravity (id,v_gravity
        }
    }
    
    if(
team == 2)
    {

        if ( ( 
get_uchandle UC_Buttons ) & IN_JUMP ) && !( pevid pev_oldbuttons ) & IN_JUMP ) && ( pevid pev_flags ) & FL_ONGROUND ) )
        {
            
    
            
v_gravity 0.92
            set_user_maxspeed
(idget_cvar_float("s_speed"))
            
set_user_gravity (id,v_gravity
        }
    }
    return 
PLUGIN_CONTINUE

samba88 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 00:50.


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