Raised This Month: $ Target: $400
 0% 

Multijump


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 12-24-2010 , 12:42   Multijump
#1

Un codigo que encontre en mi carpeta de proyectos, por si a alguien le sirve...
PHP Code:
#include < amxmodx >
#include < engine >
#include < hamsandwich >

new g_Saltos33 ]
#define MAX_SALTOS 5

public plugin_init( )
    
RegisterHamHam_Player_Jump"player""fw_PlayerJump" )

public 
fw_PlayerJumpid )
{
    static 
flagsflags get_entity_flagsid )
    static 
buttonbutton get_user_buttonid )
    static 
oldbuttonoldbutton get_user_oldbuttonid )
        
    if( ( 
button IN_JUMP ) && !( flags FL_ONGROUND ) && !( oldbutton IN_JUMP ) )
    {        
        if( ++
g_Saltosid ] <= MAX_SALTOS )
        {
            static 
Float:Velocity]    
            
entity_get_vectoridEV_VEC_velocityVelocity )

            
Velocity] = random_float265.0285.0 )
            
entity_set_vectoridEV_VEC_velocityVelocity )
        }
    }
    
    if( 
flags FL_ONGROUND )
        
g_Saltosid ] = 0

__________________

Last edited by Javivi; 12-25-2010 at 11:08.
Javivi 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 06:05.


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