[req] Setinfo Check Plugin?
BioHazard
Join Date: 2002-11-07 Member: 7495Members
another request for the plugin masters...
i wanted to toss a plugin on my server that would check for a setinfo in a persons config and if its not there to play a wav file.
i want to be able to change the setinfo it looks for though.. reason being...
i want to kindly ask people to visit the webpage for updates. on the updates page it will give them the setinfo command they need to put in to stop the wav from playing. this way people will get all the new info they need from the page or get a reminder to go check it. when new news is released i would change the config to check for a different setinfo so the wav would play again and people would hear my voice saying thank you for playing on blah blah server please check our updates at www.blah blah blah.
where they would get new info and change the setinfo command in there configs.
maybe a MM plugin that checks a info.cfg file that has the setinfo variable in it.
i wanted to toss a plugin on my server that would check for a setinfo in a persons config and if its not there to play a wav file.
i want to be able to change the setinfo it looks for though.. reason being...
i want to kindly ask people to visit the webpage for updates. on the updates page it will give them the setinfo command they need to put in to stop the wav from playing. this way people will get all the new info they need from the page or get a reminder to go check it. when new news is released i would change the config to check for a different setinfo so the wav would play again and people would hear my voice saying thank you for playing on blah blah server please check our updates at www.blah blah blah.
where they would get new info and change the setinfo command in there configs.
maybe a MM plugin that checks a info.cfg file that has the setinfo variable in it.
Comments
It would be totally annoying if a sound played like every 2 minutes.
i run a modded server therefore its an easy way to tell people whats up. dont like it dont join my server.
easy fix. sorry if i sound like a butt, but im tired of people dissin the plugins and the servers.. dont like em dont play there.
the plugin would only play the wav if you were to stupid to visit the site. i encourage my patrons to visit the site to keep up on new tweaks and toys on teh server. if they do something against the rules they dont come back. ignorance is no excuse for breaking the rules of the server..
plus the wav would only be downloaded once and only be a few seconds long saying "visit www.clan-dg.net for the latest server news."
short sweet and to the point.
Playing it once when they connect would be acceptable(maybe 2-5 seconds into the game- they would probably be in the readyroom still).** I don't suggest repeat msg's as that annoys people. **
Also, just a question to add to this topic...
what are the ways to get custom sounds to download *once only* to be played by a plugin I make? I have no experience in custom sounds in how they are downloaded to the user.
I think I am ok with playing them using the playsound() function. <--- please inform me if a better method is used (this is for ADMINMOD Plugins)
- Matt
<!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->
I think I could write what you need using adminmod.... get_userinfo should be able to retrieve stuff they have stored as setinfo...I'd suggest having them exec a "yourservername.cfg" file with their autoexec.cfg. And simply have them download the "latest" version of the yourserver.cfg
You can probably use < setinfo updateversion "put version number here" > and have your script detect if their version is less than the current version, if so play a sound.. a simple icq type sound would work. I'm actually really busy working on my own projects but if you need further help private message me or post again. I think I saw you post something similar up to adminmods forums... good luck