plugins/include/usermessages.inc
changeset 512 44bc3fc6404c
parent 508 5ce8b28b29c4
child 552 e58968c96860
     1.1 --- a/plugins/include/usermessages.inc	Sat Feb 17 05:33:31 2007 +0000
     1.2 +++ b/plugins/include/usermessages.inc	Sat Feb 17 07:31:14 2007 +0000
     1.3 @@ -37,6 +37,16 @@
     1.4  native UserMsg:GetUserMessageId(const String:msg[]);
     1.5  
     1.6  /**
     1.7 + * Retrieves the name of a message by ID.
     1.8 + *
     1.9 + * @param msg_id		Message index.
    1.10 + * @param msg			Buffer to store the name of the message.
    1.11 + * @param maxlength		Maximum length of string buffer.
    1.12 + * @return				True if message index is valid, false otherwise.
    1.13 + */
    1.14 +native bool:GetUserMessageName(UserMsg:msg_id, String:msg[], maxlength);
    1.15 +
    1.16 +/**
    1.17   * Starts a usermessage (network message).
    1.18   * @note Only one message can be active at a time.
    1.19   * @note It is illegal to send any message while a non-intercept hook is in progress.