View Single Post
Plugin Info:     Modification:          Category:          Approver:   Johnny got his gun (102)
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 04-05-2005 , 08:40   Music Menu Advance
Reply With Quote #1

Music Menu Advance v3.07

Description:
Open the background music list set on the server from the menu and play the MP3 file on the client side.

This plug-in reinforced a former plug-in.
http://forums.alliedmods.net/showthread.php?t=5365

Modules:
  • [required]: AMXMODX v1.9.0 (split_string function does not exist in v1.8.2)
  • (3.03alpha:1.8.2 and cromchat.inc)
Usage:
  • Introduce the INI file which described a MP3 file in the Config dir. "addons/amxmodx/configs/bgmlist.ini"
  • and all mp3 files in "[modname_directory]/" folder.
  • Edit INI file
    • "music title";"[directory]/[mp3 filename]";"[TIME FORMAT MM:SS]"

      example:
      Code:
      example:
      HL-BGM 01;media/Half-Life01.mp3;02:12
      HL-BGM 02;media/Half-Life02.mp3;01:47
      ...
      Registration is possible.
      file path 64, and title 32 characters.

      the precache of the mp3s automatic
  • Attention: Please note that the maximum number that can be precached is 512.

Cvars:
  • amx_mma_loadingsong
    • loadingsong 1 to on , 0 to off.
  • amx_mma_round
    • round bgm 1 to on, 0 to off.

Commnads:
  • amx_mma_play <BgmNumber> - server bgm starting
  • say "/mma" or "/bgm" - shows a menu of a Music commands.
  • say "/mma config" or "/bgm config" - shows a menu of a config commands.
  • say "/mma next" or "/bgm next"
  • say "/mma back" or "/bgm back"
  • say "/mma stop" or "/bgm stop"

Code:
v3.07
Added: Comment and Empty line Check 
(Metamod-R bug fix wrapping.)

v3.06
Added: version check.

v3.05
Added: Say Commands.

v3.04
Added: /mma config
Added: Playback playlist.
Added: Loop.
Added: Show Time bar.
Added: Auto Play BGM.

v3.02
Fixed 1.9.0 compile error.

v3.01
Fixed precache bug.
Using fopen/fgets/fclose.
Remove maximum song limit. 
Change separator to semicolon. (can use space character.)
 
v3.00
Replace for new menu system.

v2.60
fix easy miss...
 
v2.59
use pcvar
cut engine module.
 
v2.58
Any code changed.
 
v2.56
The addition of the server command.
It is poor at English....
old v2.56 4877 views thanks

sample ini file here. all valve mp3 files.

GitHub: https://github.com/AoiKagase/Amxx-MusicMenuAdvance
Attached Files
File Type: ini bgmlist.ini (578 Bytes, 402 views)
File Type: sma Get Plugin or Get Source (mma303a.sma - 700 views - 6.6 KB)
File Type: zip mma307.zip (11.8 KB, 387 views)
__________________
GitHub
SteamWishlist

六四天安門事件

Last edited by +ARUKARI-; 12-07-2020 at 19:16. Reason: v3.07 Release
+ARUKARI- is offline