Raised This Month: $12 Target: $400
 3% 

Offsets of aCon_Printf


Post New Thread Reply   
 
Thread Tools Display Modes
Leonidddd
Member
Join Date: Apr 2012
Old 01-27-2014 , 11:31   Re: Offsets of aCon_Printf
Reply With Quote #11

Somewhere is mistake.
I'll recheck offsets of windows.

Last edited by Leonidddd; 01-27-2014 at 11:32.
Leonidddd is offline
Leonidddd
Member
Join Date: Apr 2012
Old 01-29-2014 , 13:06   Re: Offsets of aCon_Printf
Reply With Quote #12

PHP Code:
{
    
"name"       "UTIL_LogPrintf",
    
"library"    "mod",
    
"info" "Event is calling,when server is writing something",
    
"arguments"  :
    [
        {
            
"type" "char *"
        
}
    ],
    
"identifiers":
    [
        {
            
"os"    "windows",
            
"mod"   "cstrike",
            
"value" : [0x8D,0x44,0x24,0x08,0x50,0x51,0x68,"*","*","*","*",0xE8,"*","*","*"]
        },
        {
            
"os"    "linux",
            
"mod"   "cstrike",
            
"value" "_Z14UTIL_LogPrintfPcz"
        
}
    ]

There is no information in console(there aren't FOUND and NOT FOUND),when I connected my plugin:
PHP Code:
#include <amxmodx>
#include <orpheu>


new args[512];

new 
message[512];

new    
OrpheuFunction:Event_Log_Server;
    
public 
plugin_init(){
    
    
Event_Log_Server OrpheuGetFunction("UTIL_LogPrintf");
    
    
OrpheuRegisterHook(Event_Log_Server"Hook_Loggining_Server");
    
}

public 
Hook_Loggining_Server(){

    
read_args(args,charsmax(args))
    
remove_quotes(args)
    
format(messagecharsmax(message), "Написало в консоль: %s"args)    
    
write_file("\addons\amxmodx\configs\test.txt",message,-1)

Where is my mistake?
Leonidddd is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-30-2014 , 03:45   Re: Offsets of aCon_Printf
Reply With Quote #13

\cstrike\addons\amxmodx\configs\orpheu\functi ons\UTIL_LogPrintf

PHP Code:
{
    
"name"       "UTIL_LogPrintf",
    
"library"    "mod",
    
"info" "Event is calling,when server is writing something",
    
"arguments"  :
    [
        {
            
"type" "char *"
        
}
    ],
    
"identifiers":
    [
        {
            
"os"    "windows",
            
"mod"   "cstrike",
            
"value" : [0x8D,0x44,0x24,0x08,0x50,0x51,0x68,"*","*","*","*",0xE8,"*","*","*","*",0x68,"*","*","*","*",0x68,"*","*","*","*",0x6A,0x05,0xFF,0x15,"*","*","*","*",0x83,0xC4,0x18,0xC3]
        },
        {
            
"os"    "linux",
            
"mod"   "cstrike",
            
"value" "_Z14UTIL_LogPrintfPcz"
        
}
    ]

PHP Code:
#include < amxmodx >
#include < orpheu >
    
public plugin_init( )
{
    
OrpheuRegisterHookOrpheuGetFunction"UTIL_LogPrintf" ), "UTIL_LogPrintf" );
}

public 
UTIL_LogPrintf( const szMessages[ ] )
{
    
server_print"DEBUG: %s"szMessages );   

Quote:
DEBUG: World triggered "Restart_Round_(%i_%s)"

DEBUG: Team "CT" scored "%i" with "%i" players

DEBUG: Team "TERRORIST" scored "%i" with "%i" players
__________________

Last edited by Bos93; 01-30-2014 at 03:53.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Leonidddd
Member
Join Date: Apr 2012
Old 01-31-2014 , 08:02   Re: Offsets of aCon_Printf
Reply With Quote #14

awesome
Thanks=)
Leonidddd is offline
Reply



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 09:21.


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