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

Solved How do i make player jump with Amxmodx?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 06-21-2020 , 10:07   How do i make player jump with Amxmodx?
Reply With Quote #1

help!!

Last edited by Grovliom; 06-22-2020 at 07:22. Reason: Solved
Grovliom is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-21-2020 , 13:57   Re: How do i make player jump with Amxmodx?
Reply With Quote #2

Quote:
Originally Posted by Grovliom View Post
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

__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 06-21-2020 , 14:36   Re: How do i make player jump with Amxmodx?
Reply With Quote #3

Quote:
Originally Posted by supertrio17 View Post
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!
Grovliom is offline
thEsp
BANNED
Join Date: Aug 2017
Old 06-21-2020 , 14:45   Re: How do i make player jump with Amxmodx?
Reply With Quote #4

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).

Last edited by thEsp; 06-21-2020 at 14:51.
thEsp is offline
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 06-21-2020 , 15:05   Re: How do i make player jump with Amxmodx?
Reply With Quote #5

Quote:
Originally Posted by thEsp View Post
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!
Grovliom 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 07:42.


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