Raised This Month: $ Target: $400
 0% 

[Orpheu] Disabling some movements


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 04-24-2011 , 04:15   Re: [Orpheu] Disabling some movements
Reply With Quote #7

Quote:
Originally Posted by bibu View Post
Ok, with the same way it works for duck, but not for jump:

PHP Code:
new const PM_EF_List[][] = // have a size of 1
{
    
"PM_Jump" // = 0
}

//in init:

    
for(new 1sizeof(PM_EF_List); i++) // not executed 
    
{
        
// if 1 < 1 then hook ? not possible ( new i = 0 )
        
OrpheuRegisterHook(OrpheuGetFunction(PM_EF_List[i]), PM_EF_List[i])
    }

//function:

public OrpheuHookReturn:PM_Jump()
{
    if(
IsUserAlive(id) && IsUserCt(id))
    {
        return 
OrpheuSupercede
    
}    
    return 
OrpheuIgnored

The check is 100% valid since the same with duck works + with connors player_index method. No idea why jump doesn't work.
__________________

Working on:
nothing
schmurgel1983 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