Raised This Month: $32 Target: $400
 8% 

Solved Game events message id under 64


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
E1_531G
Senior Member
Join Date: Dec 2017
Old 09-01-2018 , 08:10   Game events message id under 64
Reply With Quote #1

Hello.

As you may know, by using "meta game" command in the server console, we get the message id of game events.
It looks like this:
PHP Code:
Game registered user msgs:    msgid   size
   VoiceMask                    64      8
   ReqState                     65      0
   CurWeapon                    66      3
   
... 
As you can see, msgid starts from 64, but we know that there are more events with the id under 64, like the intermission event:
Quote:
register_event( "30", "InterMission", "a" )
So, my question is: where can I see all the others msgIDs (those under 64) ???

Thank you.
__________________
My English is A0

Last edited by E1_531G; 09-01-2018 at 16:25.
E1_531G is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-01-2018 , 09:00   Re: Game events message id under 64
Reply With Quote #2

Code:
#define SVC_BAD             0
#define SVC_NOP             1
#define SVC_DISCONNECT          2
#define SVC_EVENT           3
#define SVC_VERSION         4
#define SVC_SETVIEW         5
#define SVC_SOUND           6
#define SVC_TIME            7
#define SVC_PRINT           8
#define SVC_STUFFTEXT           9
#define SVC_SETANGLE            10
#define SVC_SERVERINFO          11
#define SVC_LIGHTSTYLE          12
#define SVC_UPDATEUSERINFO      13
#define SVC_DELTADESCRIPTION        14
#define SVC_CLIENTDATA          15
#define SVC_STOPSOUND           16
#define SVC_PINGS           17
#define SVC_PARTICLE            18
#define SVC_DAMAGE          19
#define SVC_SPAWNSTATIC         20
#define SVC_EVENT_RELIABLE      21
#define SVC_SPAWNBASELINE       22
#define SVC_TEMPENTITY          23
#define SVC_SETPAUSE            24
#define SVC_SIGNONNUM           25
#define SVC_CENTERPRINT         26
#define SVC_KILLEDMONSTER       27
#define SVC_FOUNDSECRET         28
#define SVC_SPAWNSTATICSOUND        29
#define SVC_INTERMISSION        30
#define SVC_FINALE          31
#define SVC_CDTRACK         32
#define SVC_RESTORE         33
#define SVC_CUTSCENE            34
#define SVC_WEAPONANIM          35
#define SVC_DECALNAME           36
#define SVC_ROOMTYPE            37
#define SVC_ADDANGLE            38
#define SVC_NEWUSERMSG          39
#define SVC_PACKETENTITIES      40
#define SVC_DELTAPACKETENTITIES     41
#define SVC_CHOKE           42
#define SVC_RESOURCELIST        43
#define SVC_NEWMOVEVARS         44
#define SVC_RESOURCEREQUEST     45
#define SVC_CUSTOMIZATION       46
#define SVC_CROSSHAIRANGLE      47
#define SVC_SOUNDFADE           48
#define SVC_FILETXFERFAILED     49
#define SVC_HLTV            50
#define SVC_DIRECTOR            51
#define SVC_VOICEINIT           52
#define SVC_VOICEDATA           53
#define SVC_SENDEXTRAINFO       54
#define SVC_TIMESCALE           55
#define SVC_RESOURCELOCATION        56
#define SVC_SENDCVARVALUE       57
#define SVC_SENDCVARVALUE2      58
From AMXX API
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 09-01-2018 at 09:00.
Ghosted is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 09-01-2018 , 15:04   Re: Game events message id under 64
Reply With Quote #3

I saw it, but i did not know that they are game events.
How to learn more about them?
I mean, for example #define SVC_DISCONNECT 2, if i use it like:
Quote:
register_event( "2", "function", "a" )
1. Is this the proper way to use it?
2. What will this event catch?
3. What parameters will it take?

Thank you.
__________________
My English is A0
E1_531G is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-01-2018 , 15:08   Re: Game events message id under 64
Reply With Quote #4

https://wiki.alliedmods.net/Half-Lif...SVC_DISCONNECT
__________________
HamletEagle is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-01-2018 , 15:09   Re: Game events message id under 64
Reply With Quote #5

You can call them with message_begin or hook them with register_event.
__________________

Last edited by OciXCrom; 09-01-2018 at 15:09.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
E1_531G
Senior Member
Join Date: Dec 2017
Old 09-01-2018 , 16:24   Re: Game events message id under 64
Reply With Quote #6

I got it. Thank you guys.
__________________
My English is A0
E1_531G is offline
Reply



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 00:20.


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