Raised This Month: $ Target: $400
 0% 

Why didn't work ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-23-2012 , 02:37   Re: Why didn't work ?
Reply With Quote #10

The CmdStart version should work fine, but this is the Orpheu for movement.

Code:
new OrpheuStruct:g_ppmove; public plugin_init( ) {     OrpheuRegisterHook( OrpheuGetDLLFunction( "pfnPM_Move", "PM_Move" ), "PM_Move" );     OrpheuRegisterHook( OrpheuGetFunction( "PM_PlayerMove" ), "PM_PlayerMove" );     OrpheuRegisterHook( OrpheuGetFunction( "PM_Duck" ), "PM_Duck" );     OrpheuRegisterHook( OrpheuGetFunction( "PM_Jump" ), "PM_Jump" ); } public OrpheuHookReturn:PM_Move( OrpheuStruct:ppmove, server ) {     g_ppmove = ppmove;         return OrpheuIgnored; } public OrpheuHookReturn:PM_PlayerMove( ) {     new iPlayer = OrpheuGetStructMember( g_ppmove, "player_index" ) + 1;         if( is_user_alive( iPlayer ) )     {         OrpheuSetStructMember( g_ppmove, "maxspeed", 0.0 );     }         return OrpheuIgnored; } public OrpheuHookReturn:PM_Jump( ) {     new iPlayer = OrpheuGetStructMember( g_ppmove, "player_index" ) + 1;         if( is_user_alive( iPlayer ) )     {         OrpheuSetStructMember( g_ppmove, "oldbuttons", OrpheuGetStructMember( g_ppmove, "oldbuttons" ) | IN_JUMP );     }         return OrpheuIgnored; } public OrpheuHookReturn:PM_Duck( ) {     new iPlayer = OrpheuGetStructMember( g_ppmove, "player_index" ) + 1;         if( is_user_alive( iPlayer ) )     {         new OrpheuStruct:cmd = OrpheuStruct:OrpheuGetStructMember( g_ppmove, "cmd" );         OrpheuSetStructMember( cmd, "buttons", OrpheuGetStructMember( cmd, "buttons" ) & ~IN_DUCK );     }         return OrpheuIgnored; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 06-23-2012 at 02:38.
Exolent[jNr] is offline
 



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 06:19.


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