hooking game start or messages
hi all
i am trying to hook round start is this a right way ? i made a forward and execute it here but when i try to send a text in(pawn code) it give me arror PHP Code:
|
Re: hooking game start or messages
Enable AlertMessage_Post to hook Round Start & Round End.
https://forums.alliedmods.net/showpo...40&postcount=4 Enable MessageBegin to hook Messages Code:
void OnMessageBegin(int Dest, int Type, const float *pOrigin, edict_t *pPlayer) Code:
#define MESSAGE_VOICEMASK 64 |
Re: hooking game start or messages
so
but what if i want to do something when msg is hooked ? |
Re: hooking game start or messages
Quote:
Code:
void OnMessageBegin(int Dest, int Type, const float *pOrigin, edict_t *pPlayer) |
Re: hooking game start or messages
ty
@edit what if need to get message arguments ? |
Re: hooking game start or messages
Quote:
then you need to create bool array where you will which message arguments are you getting from forward WriteXXXX. Code:
bool MessageHooked[256]; Code:
#define MESSAGE_HEALTH 70 ofc you must hook those forwards with g_pengfuncsTable; |
Re: hooking game start or messages
u r smart but what is g_pengfuncTable ?
|
Re: hooking game start or messages
Quote:
Code:
extern enginefuncs_t *g_pengfuncsTable; example of hooking PrecacheModel Code:
int OnPrecacheModel_Post(const char *Resource) |
Re: hooking game start or messages
ty
another thing if possible how to get damage and change it like ham_takedamage ? how to make a menu how to make a hud :) sorry for much questions |
Re: hooking game start or messages
Quote:
|
All times are GMT -4. The time now is 15:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.