Thread: help with okapi
View Single Post
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-19-2017 , 18:24   Re: help with okapi
Reply With Quote #7

With the above info, i've tried something like that and have no succes, someone can give a look?
PHP Code:
#include <amxmodx>
#include <okapi>

new const Signa[ ] = { 0x23,0x48,0x69,0x6E,0x74,0x5F,0x70,0x72,0x65,0x73,0x73,0x5F,0x62,0x75,0x79,0x5F }  
new const 
Symbo[ ] = "?BuyTouch@CBuyZone@@QAEXPAVCBaseEntity@@@Z"

public plugin_init( )
{
    new 
Handle

    
if
    (
        ( 
Handle okapi_mod_find_sigSignasizeof Signa ) ) ||
        ( 
Handle okapi_mod_get_symbol_ptr(Symbo) )
     )
    {
        
okapi_add_hookokapi_build_functionHandlearg_int), "Test", .post true )
    }
}

public 
Test()
{
    
client_print0print_chat"TEEEEEEEEEEST" );

__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor