Raised This Month: $51 Target: $400
 12% 

Edit Multi Jump


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Perrytutoriales
Member
Join Date: Mar 2014
Old 04-24-2015 , 17:50   Edit Multi Jump
Reply With Quote #1

Hi!, i need to increase the size of the jump, please leap second

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

new g_Saltos33 ]
#define MAX_SALTOS 2

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

Perrytutoriales is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-24-2015 , 18:07   Re: Edit Multi Jump
Reply With Quote #2

maybe ?
Code:
Velocity[ 2 ] = random_float( 265.0, 285.0 )
--------->
Code:
Velocity[ 2 ] = random_float( 500.0, 585.0 )
Depresie is offline
Perrytutoriales
Member
Join Date: Mar 2014
Old 04-24-2015 , 18:20   Re: Edit Multi Jump
Reply With Quote #3

Quote:
Originally Posted by Depresie View Post
maybe ?
Code:
Velocity[ 2 ] = random_float( 265.0, 285.0 )
--------->
Code:
Velocity[ 2 ] = random_float( 500.0, 585.0 )
i try with them and does not work
Perrytutoriales is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-24-2015 , 19:37   Re: Edit Multi Jump
Reply With Quote #4

Quote:
Originally Posted by Perrytutoriales View Post
i try with them and does not work
Well, that is the line you need to change. I have a feeling you probably didn't recompile and/or replace the .amxx file in your plugins folder and then restart your server.
__________________

Last edited by fysiks; 04-24-2015 at 19:38.
fysiks is offline
Perrytutoriales
Member
Join Date: Mar 2014
Old 04-24-2015 , 19:49   Re: Edit Multi Jump
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Well, that is the line you need to change. I have a feeling you probably didn't recompile and/or replace the .amxx file in your plugins folder and then restart your server.
I'm not using online server, I open a local, really, is for the ESF, Earth Special Forces, but gives a little jump like Counter Strike, I want to increase it
Perrytutoriales is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-24-2015 , 19:51   Re: Edit Multi Jump
Reply With Quote #6

Quote:
Originally Posted by Perrytutoriales View Post
I'm not using online server, I open a local, really, is for the ESF, Earth Special Forces, but gives a little jump like Counter Strike, I want to increase it
read again what he said, i think you didn't understand
Depresie is offline
Reply



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 17:37.


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