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

Multijump plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 02-13-2022 , 10:45   Multijump plugin
Reply With Quote #1

Hello. Is there a plugin that gives multi jump (double jump) to all players - zombies and humans? Players have to be able to jump two times, if they press the SPACE button 2 times. For example, if you press the SPACE button 2 times, you have to be able to jump one more time after your first time, before you land on the ground again. In other words, you have to be able to make two jumps in a row, without touching the ground.

Thanks.
GlobalPlague is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-13-2022 , 11:07   Re: Multijump plugin
Reply With Quote #2

Google - "amxmodx multijump" - first result.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Uzviseni Bog
Senior Member
Join Date: Jun 2020
Old 02-13-2022 , 17:35   Re: Multijump plugin
Reply With Quote #3

Solved

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

#define ADMIN_MULTIJUMP ADMIN_RCON

#define VERSION "0.0.7"

#define MAX_PLAYERS 32

#define m_iTeam 114
#define m_afButtonPressed 246
#define m_flFallVelocity 251

new g_iJumpCount[MAX_PLAYERS+1]
new 
g_bMultiJump[MAX_PLAYERS+1 char]

new 
g_pCvarMultiJumpsg_pCvarTeamAllowedg_pCvarOnlyAdminsg_pCvarMaxFallVelocityg_pCvarJumpVelocity

public plugin_init()
{
    
register_plugin("Multi Jumps"VERSION"ConnorMcLeod")

    
g_pCvarMultiJumps register_cvar("mp_multijumps""1")
    
g_pCvarTeamAllowed register_cvar("mp_multijumps_team""3"//0:nobody, 1:terrorists, 2:cts, 3:all
    
g_pCvarOnlyAdmins register_cvar("mp_multijumps_adminonly""0")
    
g_pCvarMaxFallVelocity register_cvar("mp_multijump_maxfallvelocity""500")
    
g_pCvarJumpVelocity register_cvar("mp_multijumps_jumpvelocity""268.328157")

    
register_clcmd("say /mj""ClCmd_Say_MultiJump")
    
register_clcmd("say /multijump""ClCmd_Say_MultiJump")

    
RegisterHam(Ham_Player_Jump"player""OnCBasePlayer_Jump"false)
}

public 
client_putinserverid )
{
    
g_bMultiJumpid } = true
}

public 
ClCmd_Say_MultiJumpid )
{
    
client_print(idprint_chat" * MultiJumps : %sable", ( g_bMultiJumpid } = !g_bMultiJumpid } ) ? "en" "dis")
}

public 
OnCBasePlayer_Jump(id)
{
    if( !
g_bMultiJumpid } || !is_user_alive(id) )
    {
        return 
HAM_IGNORED
    
}

    new 
fFlags pev(idpev_flags)
    if(    
fFlags FL_WATERJUMP
    
||    pev(idpev_waterlevel) >= 2
    
||    !(get_pdata_int(idm_afButtonPressed) & IN_JUMP)    )
    {
        return 
HAM_IGNORED
    
}

    if(    
fFlags FL_ONGROUND    )
    {
        
g_iJumpCount[id] = 0
        
return HAM_IGNORED
    
}

    new 
iMulti get_pcvar_num(g_pCvarMultiJumps)

    if( 
iMulti )
    {
        if(    
get_pcvar_num(g_pCvarTeamAllowed) & get_pdata_int(idm_iTeam)
        ||    ( 
get_pcvar_num(g_pCvarOnlyAdmins) && get_user_flags(id) & ADMIN_MULTIJUMP )    )
        {
            if(    
get_pdata_float(idm_flFallVelocity) < get_pcvar_float(g_pCvarMaxFallVelocity)
            &&    ++
g_iJumpCount[id] <= iMulti    )
            {
                new 
Float:fVelocity[3]
                
pev(idpev_velocityfVelocity)
                
fVelocity[2] = get_pcvar_float(g_pCvarJumpVelocity)
                
set_pev(idpev_velocityfVelocity)
                return 
HAM_HANDLED
            
}
        }
    }

    return 
HAM_IGNORED

Uzviseni Bog is offline
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 02-15-2022 , 10:41   Re: Multijump plugin
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
Google - "amxmodx multijump" - first result.
Yeah, i found it. I don't know why i didn't see the plugin the first time when i was looking for it.

Thanks.
GlobalPlague is offline
wy19850
Member
Join Date: Feb 2020
Location: suzhou
Old 04-11-2022 , 08:08   Re: Multijump plugin
Reply With Quote #5

hi! Friends can help me write xm1014 weapons to repel the enemy from 50-200. Thank you in advance
wy19850 is offline
Send a message via Skype™ to wy19850
wy19850
Member
Join Date: Feb 2020
Location: suzhou
Old 04-11-2022 , 08:11   Re: Multijump plugin
Reply With Quote #6

CS1.5 and CS1.6
wy19850 is offline
Send a message via Skype™ to wy19850
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 04:12.


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