Raised This Month: $ Target: $400
 0% 

Jump direction problem , going elsewhere =/


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dstopgunner
Senior Member
Join Date: Oct 2007
Old 04-03-2009 , 04:49   Re: Jump direction problem , going elsewhere =/
Reply With Quote #4

Quote:
also, use fm_cmdstart instead of fm_prethink. using cmdstart will save a lot performance.
So you mean..
PHP Code:
#include <amxmodx> 
#include <fakemeta> 
  
public plugin_init() 

    
register_plugin("Hugejump","1.0","DS_ToP_GunNeR"
    
register_forward(FM_PlayerPreThink,"FM_Cmdstart"

public 
FM_Cmdstart(id

    if((
pev(id,pev_button) & IN_JUMP) && (pev(id,pev_flags) & FL_ONGROUND)) 
    { 
        if(!(
pev(id,pev_oldbuttons) & IN_JUMP)) 
        { 
            new 
Floatvelocity[3
            
velocity_by_aim(id800velocity
            
set_pev(id,pev_velocity,velocity
        }  
    } 

???
dstopgunner 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 02:19.


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