get_user_msgid

Синтаксис

native get_user_msgid(const name[]);

Употреба

name
Client message name

Описание

Returns unique id of a client message.

Забележка

Example usage: get_user_msgid("TextMsg")

Забележка

The message id is unique as long as the server is running, but might
change between updates. They should not be hardcoded into plugins.

Забележка

On first server start, this function will return 0 if used inside
plugin_precache(). Consider hooking RegUserMsg in order to retrieve
the correct message id.

Връщаща стойност

Message id, 0 if message was not found