Raised This Month: $ Target: $400
 0% 

Ambience Sounds Manager


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   General Purpose       
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-21-2023 , 10:58   Ambience Sounds Manager
Reply With Quote #1

Ambience Sounds Manager
- v0.0.1, published at : 21/04/2023


Description
This plugin allows you to have constantly ambience sound playing.
All you have to do is add your music into the ini file and add the duration of the music.
For a nice soft loop i recommend using a float value, there are websites teaching you how to see the duration of your music with milliseconds


Ini File Configuration
  • USE_SAY_COMMANDS 0/1 - 1 uses say /volume and /ambience | 0 uses Nightvision / Jointeam (N / M keys)
  • AUTO_PLAY_AFTER_JOIN 0/1 - If 0 the player has to toggle it himself
  • TIME_FOR_AUTO_PLAY *float* - Time to play the music after client_putinserver
  • sound/directory/musicname.mp3 *float Duration of music*

Example of ambience_manager.ini on Harry Potter Mod:

Code:
; Some essencial stuff
; Use say commands 1 - If 0 it will use nightvision and team keys (N / M)
USE_SAY_COMMANDS 0

; If 0 player has to toggle the music himself
AUTO_PLAY_AFTER_JOIN 1
; Time it takes to play the music after client_putinsever
TIME_FOR_AUTO_PLAY 3.0


; Directory, music name & duration of the music
sound/harry_potter/ambience2.mp3 "Harry Potter Remix" 86.4
Attached Files
File Type: sma Get Plugin or Get Source (ambience_manager.sma - 36 views - 4.0 KB)
File Type: ini ambience_manager.ini (376 Bytes, 30 views)
__________________

Last edited by Jhob94; 11-29-2023 at 13:57. Reason: added v0.0.2
Jhob94 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode