View Single Post
S34Qu4K3
Veteran Member
Join Date: Jan 2010
Location: Galicia
Old 03-30-2011 , 06:39   Re: Orpheu: Problems getting SV_CheckProtocol function
Reply With Quote #6

Well, I´ve made some tests and I get this:

PHP Code:
{
    
"name"       "SV_CheckProtocol",
    
"library"    "engine",
    
"arguments"  :
    [
        {
            
"type" "dword"
        
},
        {
            
"type" "dword"
        
}
    ],
    
"identifiers":
    [
        {
            
"os"    "windows",
            
"mod"   "cstrike",
            
"value" : [55,0x8B,0xEC,0x56,0x57,0x8B,0x7D,"*",0x85,0xFF,0x75,0x13,0x68,0x88,0x2C,0xE6]
        }
    ]

I´ve put it in configs/orpheu/functions folder and I´ve made a simple plugin:
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <orpheu>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "S34Qu4K3"

public plugin_precache()
{    
    
OrpheuRegisterHook(OrpheuGetFunction("SV_CheckProtocol"),"SV_CheckProtocol_function")
}
public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}
public 
OrpheuHookReturn:SV_CheckProtocol_function()
{
    new 
variable_1[100]   
    new 
variable_2[100]  
    new 
variable_3[100]   
    new 
variable_4[100]  
    
    
read_argv(1,variable_199)
    
read_argv(2,variable_299)
    
read_argv(3,variable_399
    
read_argv(4,variable_499)

    
log_to_file("c_1.log"variable_1)
    
log_to_file("c_2.log"variable_2)
    
log_to_file("c_3.log"variable_3)
    
log_to_file("c_4.log"variable_4)
    
    
server_print("Acepted")

    
    

But it seems that not work
Server console:

PHP Code:


    Parsing functions started
.
        
Parsing file "EndRoundMessage" started
                
Function is updated
        Parsing file 
"EndRoundMessage" ended
        Parsing file 
"InstallGameRules" started
                
Function is updated
        Parsing file 
"InstallGameRules" ended
        Parsing file 
"SV_ConnectClient" started
                
Function is updated
        Parsing file 
"SV_ConnectClient" ended
        Parsing folder 
"CHalfLifeMultiplay" started
            Parsing file 
"CheckWinConditions" started
                
Function is updated
            Parsing file 
"CheckWinConditions" ended
            Parsing file 
"UpdateTeamScores" started
                
Function is updated
            Parsing file 
"UpdateTeamScores" ended
        Parsing folder 
"CHalfLifeMultiplay" ended
    Parsing functions ended

It seems that Orpheu doesn´t load my signature, any message error apears
__________________

- ASM2SMA: Experimental AMXX Assembly encoder

- Defuse Bar Fix

Quote:
Originally Posted by Arkshine
I DON'T WANT TO SEE NOOOOOOOOOOOOOOO AHHHHH. MY EYES ARE ALREADY HURT.
S34Qu4K3 is offline