Raised This Month: $32 Target: $400
 8% 

Change Player Sequence


Post New Thread Reply   
 
Thread Tools Display Modes
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
Bos93
Veteran Member
Join Date: Jul 2010
Old 04-26-2015 , 03:20   Re: Change Player Sequence
Reply With Quote #2

https://forums.alliedmods.net/showpo...87&postcount=2
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Reply


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 05:41.


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