Broadcast with Sound Alarm

PunkBuster

New member
Messages
216
Points
0
I've no experience making plugins, though I believe this command should be very simple to make.

What I want is a @command that broadcasts a message+play an alarm sound from inside the .GRF.

Needs to have both global and local map variations, in 3 colors(red, blue, yellow).

@balarmr (red global)

@balarmb (blue global)

@balarmy (yellow global)

@blalarmr (red local)

@blalarmb (blue local)

@blalarmy (yellow local)

 
Well I did it:

@balarm <color> <type> <file name> <message>

type

0 - Global message

1 - Local message

file name

It's a file that is inside your grfwavfile.wav

color

Uses the same configuration as '@kamic'
Sourcefile is at:http://pastebin.com/TFS0GCDsRegardsbalarm.7z

 

Attachments

this plugin is totally broken.

It doesn't let me to recompile with it, from fast look seems you miss few things like 

HPMi->addCommand instead of addatcommand

could you please check it again?

thanks again

 
Last edited by a moderator:
this plugin is totally broken.

It doesn't let me to recompile with it, from fast look seems you miss few things like 

HPMi->addCommand instead of addatcommand

could you please check it again?

thanks again

nope your wrong , HPMi->addcommand is no longer used since a few week

addAtcommand("balarm", balarm);

is correct , you should update your server to latest rev

 
Last edited by a moderator:
I tested it and it was working, Hercules' is constantly changing as ossi0110 said you should update your server to the latest revision and then try to add this plugin to your server... Or you could add it manually, like any atcommand.

 
how to use this?

balarm.7z

where to put it?

maybe it should be included on the hercules master

 
Last edited by a moderator:
It's very simple to use any plugin in Hercules, extract balarm.7z and put its contents in your plugins folder. Now open conf/plugins.conf you'll see something like:

Code:
plugins_list: [	/* Enable HPMHooking when plugins in use rely on Hooking */	//"HPMHooking",	//"db2sql",	//"sample",	//"other",]
Add just below "//"other,":
Code:
"balarm",
Now download balarm's sourcefile http://pastebin.com/TFS0GCDs and save it as balarm.c in /src/plugin
 
Well I did it:

@balarm <color> <type> <file name> <message>

type

0 - Global message

1 - Local message

file name

It's a file that is inside your grfwavfile.wav

color

Uses the same configuration as '@kamic'
Sourcefile is at:http://pastebin.com/TFS0GCDsRegards
 Is there a .wav file for this?
There isn't, any file that is in your wav folder will work.If you're going to use the command download the new version: http://herc.ws/board/files/file/88-broadcast-alarm/

 
Back
Top