Raised This Month: $ Target: $400
 0% 

Multijump


  
 
 
Thread Tools Display Modes
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
fearAR
Veteran Member
Join Date: Oct 2010
Old 12-24-2010 , 13:24   Re: [ES] Multijump
#2

Muchisimas gracias... Ya que todabia no manejo mucho lo, de los vectores y origins... Muy poco :S

PD: No habra un TUT que explique algo de los origins y vectores?
fearAR is offline
Send a message via MSN to fearAR
Exc3ll@N
Veteran Member
Join Date: Oct 2009
Location: Donde me lleve el viento
Old 12-25-2010 , 02:12   Re: [ES] Multijump
#3

javivi ese code daria 5 saltos seguidos ? osea puedo hacer 2 saltos espero 1 seg y 3 saltos mas ?
__________________
Haz lo que sientas y te haga feliz.
Exc3ll@N is offline
Send a message via MSN to Exc3ll@N
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 12-25-2010 , 09:42   Re: [ES] Multijump
#4

Puedes dar hasta 5 saltos en el aire y luego cuando vuelvas a tocar el suelo puedes volver a dar otros 5
__________________
Javivi is offline
Old 12-25-2010, 10:33
fezh
This message has been deleted by fezh. Reason: puto el que lee
Old 12-25-2010, 11:06
Javivi
This message has been deleted by Javivi. Reason: puto el de arriba :3
 



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 23:51.


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