Raised This Month: $ Target: $400
 0% 

[Orpheu] Disabling some movements


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bibu
Veteran Member
Join Date: Sep 2010
Old 04-23-2011 , 09:50   Re: [Orpheu] Disabling some movements
Reply With Quote #3

I really don't know how to start, so I did something like this:

PHP Code:
    OrpheuRegisterHook(OrpheuGetFunctionFromClass("player""Jump""CBasePlayer"), "orpheu_player_jump")
    
OrpheuRegisterHook(OrpheuGetFunctionFromClass("player""Duck""CBasePlayer"), "orpheu_player_duck"
Both get well called:

PHP Code:
public orpheu_player_jump(id)
{
    if(
is_user_alive(id))
    {
        return 
OrpheuSupercede
    
}
    return 
OrpheuIgnored

But here, I get a mismatch error. Is this code fine at all?
bibu 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 20:09.


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