Hello,
I learn SP since 2 weeks, but now i'm blocked with my plugin...
The role of my plugin it's to play a sound when the round start.
i have one error in my console :
S_StartSound: Invalid sample rate (48000) for sound '*merry.mp3'.
i share you my code :
PHP Code:
#define PLUGIN_AUTHOR "XIROSA"
#define PLUGIN_VERSION "0.00"
#include <sourcemod>
#include <sdktools>
#include <emitsoundany>
public Plugin:myinfo = {
name = "Son début round",
author = "Xirosa",
description = "Plugin musique début round",
url = "http://involved-gaming.com"
};
public OnMapStart()
{
PrecacheSoundAny("merry.mp3", true);
AddFileToDownloadsTable("sound/merry.mp3");
}
public OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath, EventHookMode_Pre);
}
public Action Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast)
{
EmitSoundToAllAny("merry.mp3");
PrintToChatAll("TESTETSTESTESTESTESETSET");
return Plugin_Handled;
}
Ty for your help