PunkBuster 5 Posted December 18, 2013 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) Quote Share this post Link to post Share on other sites
0 pan 87 Posted December 19, 2013 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 Quote Share this post Link to post Share on other sites
0 Klutz 2 Posted December 22, 2013 (edited) 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 December 22, 2013 by Klutz Quote Share this post Link to post Share on other sites
0 ossi0110 200 Posted December 22, 2013 (edited) 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 December 22, 2013 by ossi0110 Quote Share this post Link to post Share on other sites
0 pan 87 Posted December 23, 2013 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. Quote Share this post Link to post Share on other sites
0 themon 63 Posted December 23, 2013 (edited) how to use this? balarm.7z where to put it? maybe it should be included on the hercules master Edited December 23, 2013 by themon Quote Share this post Link to post Share on other sites
0 pan 87 Posted December 23, 2013 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 Quote Share this post Link to post Share on other sites
0 Imbecile 0 Posted December 28, 2013 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? Quote Share this post Link to post Share on other sites
0 pan 87 Posted December 30, 2013 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/ Quote Share this post Link to post Share on other sites
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