Raised This Month: $ Target: $400
 0% 

Blocking jumping


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yetj
Junior Member
Join Date: Dec 2008
Location: Poland
Old 06-11-2009 , 13:35   Blocking jumping
Reply With Quote #1

Hello,
I need plugin, which will block jumping.
Anyone can help me and to write such plugin?
Greetings
yetj is offline
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 06-11-2009 , 15:35   Re: Blocking jumping
Reply With Quote #2

PHP Code:
/* Plugin generated by Emilioneri */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Block Jump"
#define VERSION "1.0"
#define AUTHOR "Emilioneri"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_clcmd("+jump""BlockJump")
    
register_clcmd("-jump""BlockJump")
}

public 
BlockJump(id)
{
    return 
PLUGIN_HANDLED

Emilioneri is offline
Send a message via Skype™ to Emilioneri
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-11-2009 , 15:37   Re: Blocking jumping
Reply With Quote #3

Emilioneri And you really think what it will work?
__________________
xPaw is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-11-2009 , 15:38   Re: Blocking jumping
Reply With Quote #4

Give an example then xPawn
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
yetj
Junior Member
Join Date: Dec 2008
Location: Poland
Old 06-11-2009 , 16:24   Re: Blocking jumping
Reply With Quote #5

Emilioneri, this isn't work. -.-
yetj is offline
Old 06-11-2009, 16:35
Arkshine
This message has been deleted by Emp`. Reason: Unrelated
Old 06-11-2009, 16:41
TitANious
This message has been deleted by Emp`. Reason: Unrelated
Old 06-11-2009, 16:49
Emilioneri
This message has been deleted by Emp`. Reason: Unrelated
Old 06-11-2009, 16:55
Arkshine
This message has been deleted by Emp`. Reason: Unrelated
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-11-2009 , 16:55   Re: Blocking jumping
Reply With Quote #6

Here you go,

Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN "block jumping" #define VERSION "1.0" #define AUTHOR "tpt" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_forward( FM_CmdStart, "fwd_cmdstart" ); } public fwd_cmdstart( id, uc_handle, random_seed ) {     static button; button = get_uc( uc_handle, UC_Buttons );         if( button & IN_JUMP )     {         new Float:fVel[ 3 ];         pev( id, pev_velocity, fVel );         fVel[ 2 ] = float( -abs( floatround( fVel[ 2 ] ) ) )         set_pev( id, pev_velocity, fVel )     } }
tpt is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-11-2009 , 17:10   Re: Blocking jumping
Reply With Quote #7

Stuff with velocity just shit

Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_forward( FM_CmdStart, "fwd_cmdstart" ); } public fwd_cmdstart( id, uc_handle, random_seed ) {     static buttons; buttons = get_uc( uc_handle, UC_Buttons );         if( buttons & IN_JUMP )     {     //  set_uc(uc_handle, UC_Buttons, buttons & ~IN_JUMP);         set_uc(uc_handle, UC_Buttons, ~IN_JUMP);     } }
__________________
xPaw is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-11-2009 , 17:11   Re: Blocking jumping
Reply With Quote #8

Already tried that xPaw, no workie.
__________________
Bugsy is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-11-2009 , 17:15   Re: Blocking jumping
Reply With Quote #9

Quote:
Originally Posted by xPaw View Post
Stuff with velocity just shit

Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_forward( FM_CmdStart, "fwd_cmdstart" ); } public fwd_cmdstart( id, uc_handle, random_seed ) {     static buttons; buttons = get_uc( uc_handle, UC_Buttons );         if( buttons & IN_JUMP )     {     //  set_uc(uc_handle, UC_Buttons, buttons & ~IN_JUMP);         set_uc(uc_handle, UC_Buttons, ~IN_JUMP);     } }
Velocity and gravity are only ways AFAIK. Gravity is better method but it can kill you easily.

Last edited by tpt; 06-16-2009 at 09:37.
tpt is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-11-2009 , 17:46   Re: Blocking jumping
Reply With Quote #10

Both ways are sloppy and not actually blocking jump.
__________________
Bugsy is offline
Reply


Thread Tools
Display Modes

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 13:57.


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