AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved How do i make player jump with Amxmodx? (https://forums.alliedmods.net/showthread.php?t=325419)

Grovliom 06-21-2020 10:07

How do i make player jump with Amxmodx?
 
help!!

supertrio17 06-21-2020 13:57

Re: How do i make player jump with Amxmodx?
 
Quote:

Originally Posted by Grovliom (Post 2706709)
help!!

I was trying something, but couldn't get it to work, if you can do something to this code then here you go.
PHP Code:

#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_plugin("Class Menu for CRX""2.0""Mr. Boopsy");
    
register_concmd("amx_jumpp""jump_id"ADMIN_KICK"<authid, nick or #userid>");
}

public 
jump_id(idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
    {
        return 
PLUGIN_HANDLED
    
}
    new 
name[32]
    
read_argv(1name31)
    new 
player get_user_index(name)
    if(
player)
    {
        
client_cmd(player"+jump")
        
client_cmd(player"-jump")
    }
    return 
PLUGIN_HANDLED



Grovliom 06-21-2020 14:36

Re: How do i make player jump with Amxmodx?
 
Quote:

Originally Posted by supertrio17 (Post 2706731)
I was trying something, but couldn't get it to work, if you can do something to this code then here you go.
PHP Code:

#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_plugin("Class Menu for CRX""2.0""Mr. Boopsy");
    
register_concmd("amx_jumpp""jump_id"ADMIN_KICK"<authid, nick or #userid>");
}

public 
jump_id(idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
    {
        return 
PLUGIN_HANDLED
    
}
    new 
name[32]
    
read_argv(1name31)
    new 
player get_user_index(name)
    if(
player)
    {
        
client_cmd(player"+jump")
        
client_cmd(player"-jump")
    }
    return 
PLUGIN_HANDLED



RS : Hvala brate! Radi!
ENG :Thanks bro! It Works!

thEsp 06-21-2020 14:45

Re: How do i make player jump with Amxmodx?
 
Code:
// Dependencies: Fakemeta & Hamsandwich. stock ForcePlayerJump(id) {     new Float:fVelocity[3];     pev(id, pev_velocity, fVelocity);     fVelocity[2] = random_float(265.0, 285.0);     set_pev(id, pev_velocity, fVelocity);     ExecuteHamB(Ham_Player_Jump, id); }
1. Take more time to add a little description to your thread, i.e by telling what you tried so far and what you're trying to achieve.
2. Take more time searching instead of starting a new thread that was already asked and moreover answered.
3. If you are unsure how something goes then take a look at other plugins. I didn't know the exact velocity players gain when jumping so I viewed a plugin called "multijump" - and 90% of CS players know what this does (including you).

Grovliom 06-21-2020 15:05

Re: How do i make player jump with Amxmodx?
 
Quote:

Originally Posted by thEsp (Post 2706745)
Code:
// Dependencies: Fakemeta & Hamsandwich. stock ForcePlayerJump(id) {     new Float:fVelocity[3];     pev(id, pev_velocity, fVelocity);     fVelocity[2] = random_float(265.0, 285.0);     set_pev(id, pev_velocity, fVelocity);     ExecuteHamB(Ham_Player_Jump, id); }
1. Take more time to add a little description to your thread, i.e by telling what you tried so far and what you're trying to achieve.
2. Take more time searching instead of starting a new thread that was already asked and moreover answered.
3. If you are unsure how something goes then take a look at other plugins. I didn't know the exact velocity players gain when jumping so I viewed a plugin called "multijump" - and 90% of CS players know what this does (including you).

thank you thEsp! i will not make more threads that already exist!


All times are GMT -4. The time now is 17:13.

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