starting from snapshot 1.3.0-hg2862.tar.gz
this code will crash the server:
Code:
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1
new UserMsg:g_umSendAudio;
public OnPluginStart(){
if((g_umSendAudio=GetUserMessageId("SendAudio")) != INVALID_MESSAGE_ID)
HookUserMessage(g_umSendAudio, UserMsgSendAudio, true);
else
SetFailState("GetUserMessageId for SendAudio");
}
public Action:UserMsgSendAudio(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init){
return Plugin_Continue;
}
sample attached with LogMessage
seems it goes infinite loop and then SEGMENTATION FAULT
if leave intercept=false or return Plugin_Handled - it will work
maybe there is some new usage of HookUserMessage ???
PS: works fine on 1.3.0-hg2841.tar.gz