The thing is that I have a Music Game where you can start music and stop the music but when I click "STOP" the music keeps playing.
PHP Code:
public Dans_handler(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new acces, callback
menu_item_getinfo(menu, item, acces, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
client_cmd(0, "spk %s", g_szSound3)
set_dhudmessage(255, 85, 0, -1.0, 0.12, 2, 2.0, 2.0)
show_dhudmessage(id, "[OG-G] DaysMenu ^n Dance until the music stops!")
}
case 2: client_cmd(0, "spk stop")
}
return PLUGIN_HANDLED
}