View Single Post
Author Message
Perrytutoriales
Member
Join Date: Mar 2014
Old 04-25-2015 , 19:37   Change Player Sequence
Reply With Quote #1

Hi I need to change the sequence of the second jump of this plugin

PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < engine >
#include < fakemeta >
#include < hamsandwich >

new g_Saltos33 ]
#define MAX_SALTOS 1

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_float865.0885.0 )
          
entity_set_vectoridEV_VEC_velocityVelocity )       
       }
    }
    
    if( 
flags FL_ONGROUND )
        
g_Saltosid ] = 

Perrytutoriales is offline