Raised This Month: $ Target: $400
 0% 

Multijump


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-06-2009 , 16:39   Re: Multijump
Reply With Quote #1

Ham looks like to be quite simple Oo
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-07-2009 , 06:35   Re: Multijump
Reply With Quote #2

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd "say mj" ,     "cmdMultiJump" )
    
register_clcmd "team_say mj",    "cmdMultiJump" )
}
    Public 
cmdMultiJumpid ) {
set_pev(clientpev_oldbuttonspev(clientpev_oldbuttons) & ~IN_JUMP);
ExecuteHamB(Ham_Player_Jumpclient);

It shouln't just be like this? If yes it cant compile
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.

Last edited by TitANious; 04-07-2009 at 06:39.
TitANious is offline
Send a message via MSN to TitANious
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-07-2009 , 07:09   Re: Multijump
Reply With Quote #3

No, you made it all wrong.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-07-2009 , 08:03   Re: Multijump
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
Code:
set_pev(client, pev_oldbuttons, pev(client, pev_oldbuttons) & ~IN_JUMP); ExecuteHamB(Ham_Player_Jump, client);

Would this work if player is not on the ground?
The "?" means he doesn't know if it will work.
__________________
fysiks is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-07-2009 , 08:05   Re: Multijump
Reply With Quote #5

Yeah , but i thougt it sounded like it woul work
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Dr.G
Senior Member
Join Date: Nov 2008
Old 04-06-2009 , 08:45   Re: Multijump
Reply With Quote #6

[DK]
bare slet det der hvor den chekker admin flaget:

[EN]
Just delete the admin check

PHP Code:
|| (get_pcvar_num (get_user_flags(iCl) & FLAG_ADMIN))) 
__________________
Dr.G is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-06-2009 , 09:14   Re: Multijump
Reply With Quote #7

@DR.G Thanks, but when i think it dosent care

@All where should i put
PHP Code:
set_task(0.0"hns_multijump"0params1"a"1
?
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-07-2009 , 08:23   Re: Multijump
Reply With Quote #8

It seems to not work. ( fastly tested )


[Edit] A jump is a player's velocity modification on z axis ; I guess the best way is to alter directly the player's velocity instead of calling function which does the same thing but with more checks/more code. Also it would be more customizable. So I don't see how you can think that there is a better way.

Last edited by Arkshine; 04-07-2009 at 14:26.
Arkshine is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 04-07-2009 , 13:32   Re: Multijump
Reply With Quote #9

Public cmdMultiJump( id )
{
set_pev(id, pev_oldbuttons, pev(id, pev_oldbuttons) & ~IN_JUMP)
ExecuteHamB(Ham_Player_Jump, id)
}


Or

Public cmdMultiJump( client )
{
set_pev(client, pev_oldbuttons, pev(client, pev_oldbuttons) & ~IN_JUMP)
ExecuteHamB(Ham_Player_Jump, client)
}
__________________
Dr.G is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-07-2009 , 13:48   Re: Multijump
Reply With Quote #10

Is it tested?
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
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 02:27.


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