Raised This Month: $ Target: $400
 0% 

[ SOLVED ] Orpheu signature


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Process
Junior Member
Join Date: Jan 2015
Location: Banned
Old 01-05-2015 , 03:17   Re: Orpheu signature
Reply With Quote #4

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
It's the same code but using okapi module. If you still want to use Orhpeu you can make Host_Status_f config file easily (you have the Windows signature in the code below).
PHP Code:
#define SKIPBIT 0xDEF

public plugin_init()
{
    new 
iEngineBasePtr okapi_engine_get_base_ptr()
    new 
iBytes_Host_Status_f[] =  {0x55,0x8B,0xEC,0x81,0xEC,SKIPBIT,SKIPBIT,SKIPBIT,SKIPBIT,0xA1,SKIPBIT,SKIPBIT,SKIPBIT,SKIPBIT,0x53,0x56,0x57,0xBF,SKIPBIT,SKIPBIT,SKIPBIT,SKIPBIT,0x33,0xDB,0x8B,0xF7,0x3B,0xC7,0x89,0x5D,0xE4,0x89,0x5D,0xDC,0x89,0x5D,0xE8,0x89,0x5D,0xF8,0x89,0x75,0xFC,0xC7,0x45,0xF4,0x50,0xCF};
    new 
iSig_Host_Status_f okapi_engine_find_sig_at(iEngineBasePtriBytes_Host_Status_fsizeof iBytes_Host_Status_f);
    new 
okapi_func:hFunc_Host_Status_f okapi_build_function(iSig_Host_Status_farg_void);
    
okapi_add_hook(hFunc_Host_Status_f"Host_Status_f");
}

public 
Host_Status_f()
{
    new 
id engfunc(EngFunc_GetCurrentPlayer)+1
    client_print
(0print_chat"test: %d"id)
    return 
okapi_ret_supercede;

i've copy the signature .
Just one last question how to find a public hook like SV_RCon and SV_DROPCLIENT ... ? is it in mp.dll ?


Thanks.
Process 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 03:00.


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