The main question is "How can we get a message's ID in plugin_precache?"
After the first initialization
Code:
get_user_msgid("WeaponList")
returns
0 in plugin_precache.
This message should be caught in plugin_precache because it will be send before the plugin_init. So if you want to log the arguments of this one you should do it in the here.
It's all right but whenever I start or restart the server this message ID will be returned as 0, after the first changelevel everything is fine, I got the expected message ID (7
.
After I coding for myself I will store this ID staticly in my pugins but if someone has any useful idea we can check this out.