Quote:
Originally Posted by killerZM
so
but what if i want to do something when msg is hooked ?
|
Code:
void OnMessageBegin(int Dest, int Type, const float *pOrigin, edict_t *pPlayer)
{
switch (Type)
{
case MESSAGE_HOSTAGEK:
break; // <<< You Can Write Anything Here. This message already hooked.
case MESSAGE_HOSTAGEPOS:
break; // <<< You Can Write Anything Here. This message already hooked.
case MESSAGE_HLTV:
break; // <<< You Can Write Anything Here. This message already hooked.
}
RETURN_META(MRES_IGNORED);
}