sk大大,我这个插件是backgroundmisc,但我不知道如何用,请sk大大帮帮我,这个插件如何用。
#include <amxmodx>
//Thanks to tuty for helping me ^_^
//Sound Path
#define SND1 "sound/anime/battle/into_the_battlefiled.mp3"
new g_Count = 0;
public plugin_init()
{
register_plugin("Battle Sound", "1.0", "ilham92-cc-sakura");
register_event("TextMsg", "GameCommencing", "a", "2=#Game_Commencing");
register_logevent("roundstart", 2, "1=Round_Start");
}
public plugin_precache()
{
precache_generic(SND1);
}
public GameCommencing()
{
g_Count = 0;
}
public roundstart()
{
g_Count++;
set_hudmessage(0, 255, 0, -1.0, 0.30, 0, 6.0, 8.0);
show_hudmessage(0, "Prepare for Battle! Go For it!^nRound %i", g_Count);
new sound1[129];
copy(sound1,128,SND1);
if(contain(sound1,".mp3"))
{
replace(sound1,128,".mp3","");
client_cmd(0, "mp3 play %s",sound1);
}
}