Raised This Month: $ Target: $400
 0% 

hooking game start or messages


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Beqa Gurgenidze
BANNED
Join Date: Nov 2016
Old 08-27-2017 , 08:57   Re: hooking game start or messages
Reply With Quote #8

Quote:
Originally Posted by killerZM View Post
u r smart but what is g_pengfuncTable ?
enginefuncs_t *g_pengfuncsTable this is engine function hooker. you can hook with this engine functions. this is created in amxmodule.cpp/meta_api.cpp. and you can use this with extern:
Code:
extern enginefuncs_t *g_pengfuncsTable;
better hook functions earlier at starting server. theres also g_pengfuncsTable_Post variable, which hooks same functions but after this function is called (Post).

example of hooking PrecacheModel

Code:
int OnPrecacheModel_Post(const char *Resource)
{
	<Your Code Here>
        
	<Wanna Block Precache?, then use RETURN_META_VALUE(MRES_SUPERCEDE, NULL);>
	// ^^ Not tested but think must work
}

void <Function where you want to set hook for engine functions>(void)
{
g_pengfuncsTable_Post->pfnPrecacheModel = OnPrecacheModel_Post;
}
Beqa Gurgenidze 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 01:09.


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