diff --git a/core/msvc8/sourcemod_mm.vcproj b/core/msvc8/sourcemod_mm.vcproj index 79a348b2..954a50e2 100644 --- a/core/msvc8/sourcemod_mm.vcproj +++ b/core/msvc8/sourcemod_mm.vcproj @@ -1,7 +1,7 @@ + + @@ -273,6 +277,10 @@ RelativePath="..\CellRecipientFilter.h" > + + @@ -333,6 +341,10 @@ RelativePath="..\sourcemod.h" > + + - - + + diff --git a/plugins/include/usermessages.inc b/plugins/include/usermessages.inc index 6afb1053..c6ad7395 100644 --- a/plugins/include/usermessages.inc +++ b/plugins/include/usermessages.inc @@ -36,6 +36,16 @@ enum UserMsg */ native UserMsg:GetUserMessageId(const String:msg[]); +/** + * Retrieves the name of a message by ID. + * + * @param msg_id Message index. + * @param msg Buffer to store the name of the message. + * @param maxlength Maximum length of string buffer. + * @return True if message index is valid, false otherwise. + */ +native bool:GetUserMessageName(UserMsg:msg_id, String:msg[], maxlength); + /** * Starts a usermessage (network message). * @note Only one message can be active at a time.