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-24-2017 , 05:36   Re: hooking game start or messages
Reply With Quote #2

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)
{
	switch (Type)
	{
	case MESSAGE_HOSTAGEK:
		Ibreak;
	case MESSAGE_HOSTAGEPOS:
		break;
	case MESSAGE_HLTV:
		break;
	}

	RETURN_META(MRES_IGNORED);
}
Some messages for Counter-Strike 1.6:

Code:
#define MESSAGE_VOICEMASK 64
#define MESSAGE_REQSTATE 65
#define MESSAGE_CURWEAPON 66
#define MESSAGE_GEIGER 67
#define MESSAGE_FLASHLIGHT 68
#define MESSAGE_FLASHBAT 69
#define MESSAGE_HEALTH 70
#define MESSAGE_DAMAGE 71
#define MESSAGE_BATTERY 72
#define MESSAGE_TRAIN 73
#define MESSAGE_HUDTEXTPRO 74
#define MESSAGE_HUDTEXT 75
#define MESSAGE_SAYTEXT 76
#define MESSAGE_TEXTMSG 77
#define MESSAGE_WEAPONLIST 78
#define MESSAGE_RESETHUD 79
#define MESSAGE_INITHUD 80
#define MESSAGE_VIEWMODE 81
#define MESSAGE_GAMETITLE 82
#define MESSAGE_DEATHMSG 83
#define MESSAGE_SCOREATTRIB 84
#define MESSAGE_SCOREINFO 85
#define MESSAGE_TEAMINFO 86
#define MESSAGE_TEAMSCORE 87
#define MESSAGE_GAMEMODE 88
#define MESSAGE_MOTD 89
#define MESSAGE_SERVERNAME 90
#define MESSAGE_AMMOPICKUP 91
#define MESSAGE_WEAPPICKUP 92
#define MESSAGE_ITEMPICKUP 93
#define MESSAGE_HIDEWEAPON 94
#define MESSAGE_SETFOV 95
#define MESSAGE_SHOWMENU 96
#define MESSAGE_SCREENSHAKE 97
#define MESSAGE_SCREENFADE 98
#define MESSAGE_AMMOX 99
#define MESSAGE_SENDAUDIO 100
#define MESSAGE_ROUNDTIME 101
#define MESSAGE_MONEY 102
#define MESSAGE_ARMORTYPE 103
#define MESSAGE_BLINKACCT 104
#define MESSAGE_STATUSVALUE 105
#define MESSAGE_STATUSTEXT 106
#define MESSAGE_STATUSICON 107
#define MESSAGE_BARTIME 108
#define MESSAGE_RELOADSOUND 109
#define MESSAGE_CROSSHAIR 110
#define MESSAGE_NVGTOGGLE 111
#define MESSAGE_RADAR 112
#define MESSAGE_SPECTATOR 113
#define MESSAGE_VGUIMENU 114
#define MESSAGE_TUTORTEXT 115
#define MESSAGE_TUTORLINE 116
#define MESSAGE_TUTORSTATE 117
#define MESSAGE_TUTORCLOSE 118
#define MESSAGE_ALLOWSPEC 119
#define MESSAGE_BOMBDROP 120
#define MESSAGE_BOMBPICKUP 121
#define MESSAGE_CLCORPSE 122
#define MESSAGE_HOSTAGEPOS 123
#define MESSAGE_HOSTAGEK 124
#define MESSAGE_HLTV 125
#define MESSAGE_SPECHEALTH 126
#define MESSAGE_FORCECAM 127
#define MESSAGE_ADSTOP 128
#define MESSAGE_RECEIVEW 129
#define MESSAGE_CZCAREER 130
#define MESSAGE_CZCAREERHUD 131
#define MESSAGE_SHADOWIDX 132
#define MESSAGE_TASKTIME 133
#define MESSAGE_SCENARIO 134
#define MESSAGE_BOTVOICE 135
#define MESSAGE_BUYCLOSE 136
#define MESSAGE_SPECHEALTH2 137
#define MESSAGE_BARTIME2 138
#define MESSAGE_ITEMSTATUS 139
#define MESSAGE_LOCATION 140
#define MESSAGE_BOTPROGRESS 141
#define MESSAGE_BRASS 142
#define MESSAGE_FOG 143
#define MESSAGE_SHOWTIMER 144
#define MESSAGE_HUDTEXTARGS 145
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