Raised This Month: $ Target: $400
 0% 

[ SOLVED ] Orpheu signature


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Process
Junior Member
Join Date: Jan 2015
Location: Banned
Old 01-04-2015 , 15:42   [ SOLVED ] Orpheu signature
Reply With Quote #1

Alors, Hey

I have this code

Code:
#include <amxmodx> #include <amxmisc> #include <orpheu>   #define PLUGIN "Status Block" #define VERSION "v1.0" #define AUTHOR "Neeeeeeeeeel.-"   new g_maxplayers;   public plugin_init(){         register_plugin(PLUGIN, VERSION, AUTHOR);         OrpheuRegisterHook(OrpheuGetFunction("Host_Status_f"), "Host_Status_f");         g_maxplayers = get_maxplayers(); }   public OrpheuHookReturn:Host_Status_f(){         new name[32], steamid[32];         for (new i=1; i<=g_maxplayers; i++){                 if (!is_user_connected(i)){                         continue;                 }                 get_user_name(i, name, charsmax(name));                 get_user_authid(i, steamid, charsmax(steamid));                 console_print(i, "%s - SteamID: %s", name, steamid);         }         return OrpheuSupercede; }

How to get the signature of Host_Status_f

and those who starts wich SV_ Like SV_RCON , SV_DROPCLIENT ?


Thanks,

Last edited by Process; 01-05-2015 at 10:55.
Process is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-04-2015 , 16:50   Re: Orpheu signature
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=147998
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-04-2015 , 16:54   Re: Orpheu signature
Reply With Quote #3

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;

__________________

Last edited by Neeeeeeeeeel.-; 01-04-2015 at 16:55.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
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
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-05-2015 , 10:49   Re: Orpheu signature
Reply With Quote #5

Those functions are in swds.dll
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Process
Junior Member
Join Date: Jan 2015
Location: Banned
Old 01-05-2015 , 10:55   Re: Orpheu signature
Reply With Quote #6

thanks [ Solved ]
Process 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 00:15.


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