Jump to content
  • 0
PunkBuster

Broadcast with Sound Alarm

Question

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)

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

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

Edited by Klutz

Share this post


Link to post
Share on other sites
  • 0

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

Edited by ossi0110

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

how to use this?

balarm.7z

 

where to put it?

 

maybe it should be included on the hercules master

Edited by themon

Share this post


Link to post
Share on other sites
  • 0

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:

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

Share this post


Link to post
Share on other sites
  • 0

 

 

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/TFS0GCDs
Regards

 

 

 

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/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.