Raised This Month: $ Target: $400
 0% 

[SOLVED]set_user_maxspeed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-14-2009 , 07:51   [SOLVED]set_user_maxspeed
Reply With Quote #1

PHP Code:
register_forwardFM_PlayerPreThink"client_prethink" );

public 
client_prethink(id )
{
    if(
is_user_alive(id))
    
Action(id );
}

public 
Action(id )
{
    new 
button pev(id,pev_button);

    if ( 
button IN_ATTACK2)
    {
        new 
Float:speed get_user_maxspeed(id) + 1300.0;
        
set_user_maxspeed(id speed); 
    
        
set_pev idpev_viewmodel2"" );        
    }
    else
    {
        new 
Float:speed1 get_user_maxspeed(id) + 1.0;
        
set_user_maxspeed(id speed1); 
    }
    
    return 
PLUGIN_HANDLED;

so i want by in_attack2 give xxx speed & when player dont use in_attack2 normal speed.


tried with : in_attack2 client_cmd cl_forwardspeed 9999 & by else 400 but dont like slowhack
__________________

Last edited by One; 06-17-2009 at 03:08.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 


Thread Tools
Display Modes

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 13:56.


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