View Single Post
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-08-2011 , 21:00   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #10

After a while i got it working

I've used CBaseButton::ButtonUse with this signature:
PHP Code:
 {
    
"name"        "ButtonUse",
    
"class"        "CBaseButton",
    
"library"    "mod",
    
"arguments"    
    [
        {
            
"type" "int"
        
},
        {
            
"type" "int"
        
},
        {
            
"type" "int"
        
},
        {
            
"type" "float"
        
}
    ],
    
"identifiers":
    [
        {
            
"os"    "windows",
            
"mod"    "cstrike",
            
"value" : [0x56,0x8B,0xF1 ,0x57,"*","*","*","*","*","*","*","*","*",0x0F,0x84,0xFC,0x00,0x00,0x00]
        }
    ]

and this code to test it:
PHP Code:
#include <amxmodx>
#include <orpheu>


public plugin_init()
    
OrpheuRegisterHook(OrpheuGetFunction("ButtonUse""CBaseButton"), "HandleButtonUse");
    

public 
HandleButtonUse(idiButtoniUseTypeFloatflSomething)
    
client_print(0print_chat"Orpheu says: Button used :O"); 
Thanks man, this is awesome.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes