Compatibility with pma-voice
This guide explains how to make the Advanced Megaphone System compatible with PMA-Voice.
1. Installation & Basic Setup
Install PMA-Voice and the LATEST version of r_megaphone on your server.
Enable PMA-Voice compatibility in the
config.luafile of r_megaphone:Open the
config.luafile of r_megaphone.Modify the following settings:
Manually create the
megaphone.luafile in pma-voice:Navigate to the folder:
Create a new file named
megaphone.lua.
Add the following code to
megaphone.lua:
You can change the distance of the megaphone's range using the first line.
Modify
fxmanifest.luain pma-voice:Open the
fxmanifest.luafile of pma-voice.Add the following line at the end of the file:
Ensure the correct startup order in
server.cfg: Make sure pma-voice is started before r_megaphone in yourserver.cfg:Restart your server to apply the changes.
2. Common Errors & Solutions
Why does this issue occur?
This error typically appears when r_megaphone is started for the first time without restarting the server. The script tries to auto-generate a file named megaphone.lua inside the pma-voice script.
However, it might fail due to:
2.1 Error: r_megaphone must contain the following line in your server.cfg file to work
r_megaphone must contain the following line in your server.cfg file to work
Cause: The r_megaphone script needs this line to produce the appropriate voice effects.
Solution:
Check that this line appears in the server.cfg. If not, add it.
2.2 Error: r_megaphone must be started after pma-voice in the server.cfg file!
r_megaphone must be started after pma-voice in the server.cfg file!Cause:
r_megaphone depends on pma-voice and must load afterward to access its functions.
Solution:
Adjust your server.cfg:
Last updated