PHP- Kodu:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Yeni Plugin"
#define VERSION "1.0"
#define AUTHOR "OzgurKardas.- K4"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("eRoundEnd",2,"1=Round_End")
}
public eRoundEnd() {
client_cmd(0,"spk sound/hosnudeddin")
}
Bu oldu birde round start için yapar mısın elimde var ama farklı sanırım biraz ?
PHP- Kodu:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Music At Round Start"
#define VERSION "0.3"
#define AUTHOR "mix97mix"
#define START_SOUND "sound/eysanliordu.wav"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
}
public plugin_precache() //Sound must be precached or plugin will not work !
{
precache_sound(START_SOUND)
}
public Event_HLTV_New_Round(id)
{
client_cmd(id, "spk %s", START_SOUND )
}