Raised This Month: $ Target: $400
 0% 

custom admin connect * MP3 * msg * STEAM-ID * GeoIP [ V1.4 | 2006-08-02]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related       
flintst0nes
Member
Join Date: Jul 2006
Location: Germany
Old 07-28-2006 , 18:24   custom admin connect * MP3 * msg * STEAM-ID * GeoIP [ V1.4 | 2006-08-02]
Reply With Quote #1

ADMIN CONNECT SOUND STEAM_ID *UPDATE V1.4*

tested on steam cs 1.6

Version 1.4

- used get_configsdir instead of hardcoded path
- added geoip support / set by cvar amx_acs_addgeo 0|1
- did some minor code optimisation

Version 1.3

- added multilingual support by using customizable textstrings
- added soundsupport for users also (by steam id)
- added admin / user leave sounds
- autoassign default settings when acs.cfg is incorrect
- increased performance through less code and variables
- checks if soundfile exists before precaching (server crashed)
- agein new config format. I'm sorry for that

Version 1.2

- NEW CONFIG FORMAT
- added STEAM ID support, so any admin can have his own sound (thx to kingzope for the idea)
- elder features still working

Version 1.1

- added text message on Admin / Users join
- added automatic sound download
- added mp3 support
- customized soundfile (set in acs.cfg)

Version 1.0

- plays a sound on admin connect


Code:
/********************************************************

   Admin connect sound plugin V1.4

   by flintst0nes http://flintst0nes.de.vu
   for   flintst0nes FUNSERVER   FAST DL
   visit steam CS1.6 @ 85.131.217.14:27025

   based on AMX MOD X MESSENGER and SDM

*********************************************************

   This plugin for AMX Mod X simply plays a wav or mp3
   file if an Admin joins the server.
   This is different to the sank join / part sound,
   because sank plays sounds on CONNECT, not on join

   Furthermore, a short notice is given, when a player
   joins or leaves.
   When an admin joins, this notice is green.

   I added sound support for user joins, too.
   Please note that only other players hear your joinsound.
   You will not hear it yourself.

   The plugin automatically downloads the soundfile if
   necesary and - yes - it is compatible to
   sv_downloadurl ;)

   Just install the plugin the usual way copying the
   amxx-file to addons/amxmodx/plugins and append
   acs.amxx to yout plugins.ini
   A sample addons/amxmodx/configs/acs.cfg will be
   automatically created.

   Please NOTE that mp3 files are located to
   e.g: sound/misc/cl_adminjoin.mp3 whereas
   wave files are typed without a leading sound/ in
   the pathname
   e.g: misc/cl_adminjoin.wav
   * DON'T USE SPACES*

   Therefore they are used by the parser, the followings
   strings are restricted for use in your custom strings:

 	.mp3
 	.wav

   Don't use them or your server will crash !

*********************************************************

EXAMPLE acs.cfg

#ADMINJOINSOUND=misc/cl_adminjoin.wav
#ADMINJOINMSG=Admin %s has joined the server
#ADMINPARTSOUND=misc/cl_part.wav
#ADMINPARTMSG=Admin %s has left the server
#USERJOINSOUND=misc/cl_join.wav
#USERJOINMSG=User %s has joined the server
#USER PARTSOUND=misc/cl_part.wav
#USERPARTMSG=User %s has left the server
STEAM_0:0:47110815=JOINSOUND:misc/cl_specialadmin.wav
STEAM_0:0:47110815=PARTSOUND:misc/cl_part.wav
STEAM_0:0:47110815=JOINMSG:Admin FOO has joined the server, with nick %s
STEAM_0:0:47110815=PARTMSG:Admin BAR has left the building, with nick %s

*********************************************************

CHANGELOG

Version 1.4

- used get_configsdir instead of hardcoded path
- added geoip support / set by cvar amx_acs_addgeo 0|1
- did some minor code optimisation

Version 1.3

- added multilingual support by using customizable textstrings
- added soundsupport for users also (by steam id)
- added admin / user leave sounds
- autoassign default settings when acs.cfg is incorrect
- increased performance through less code and variables
- checks if soundfile exists before precaching (server crashed)
- agein new config format. I'm sorry for that

Version 1.2

- added STEAM ID Support / every admin got his own sound

Version 1.1

- added text message on Admin / Users join
- added automatic sound download
- added mp3 support
- customized soundfile (set in acs.cfg)

Version 1.0

- plays a sound on admin connect

********************************************************/

#include <amxmodx>
#include <amxmisc>
#include <geoip>
Attached Files
File Type: sma Get Plugin or Get Source (acs.V1.4.sma - 14071 views - 11.2 KB)
File Type: zip acs.V1.4.zip (174.9 KB, 17900 views)
__________________
my aPlugins | Show me the time (a clock and info plugin)

Please click +karma if I was helpful

Last edited by flintst0nes; 09-18-2006 at 23:23.
flintst0nes is offline
Old 07-29-2006, 02:57
SweatyBanana
This message has been deleted by SweatyBanana.
flintst0nes
Member
Join Date: Jul 2006
Location: Germany
Old 07-29-2006 , 04:21   Re: Admin Connect Sound
Reply With Quote #2

sure. i took this one: "star wars - imperial march"

but u can use any other one, too.

My intention was to have a handy little plugin that only has exactly this task, but I modified it yet

Version 1.1

- added text message on Admin / Users join
- added automatic sound download
- added mp3 support
- customized soundfile (set in acs.cfg)
Attached Files
File Type: zip cl_adminjoin.zip (128.3 KB, 3326 views)
__________________
my aPlugins | Show me the time (a clock and info plugin)

Please click +karma if I was helpful

Last edited by flintst0nes; 07-29-2006 at 06:45.
flintst0nes is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 07-29-2006 , 18:43   Re: Admin Connect Sound
Reply With Quote #3

I deleted my original reply so you would have the second post to have the sound in it..


Greetz!
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
flintst0nes
Member
Join Date: Jul 2006
Location: Germany
Old 07-29-2006 , 18:45   Re: Admin Connect Sound
Reply With Quote #4

thx

btw: deleted the .amxx file
__________________
my aPlugins | Show me the time (a clock and info plugin)

Please click +karma if I was helpful

Last edited by flintst0nes; 07-29-2006 at 18:49.
flintst0nes is offline
kingzope
Member
Join Date: Sep 2005
Location: PA
Old 07-30-2006 , 11:09   Re: Admin Connect Sound
Reply With Quote #5

Is there any chance of this being specified per admin. Such as I can play a specific sound for a certain steam ID.
__________________
{KHH}Counter-Strike - 205.234.209.14:27015
kingzope is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 07-30-2006 , 12:41   Re: Admin Connect Sound
Reply With Quote #6

hello i just installed your plugin preety cool
but it displays my name and then joined the server is in german is there a way to make it in english
iclassdon is offline
Send a message via MSN to iclassdon
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 07-30-2006 , 13:30   Re: Admin Connect Sound
Reply With Quote #7

Yeah, change the text into english....

EDIT: Here's an english version.

Last edited by Kensai; 07-30-2006 at 17:01.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
Old 07-30-2006, 14:08
flintst0nes
This message has been deleted by flintst0nes. Reason: updated
Old 07-30-2006, 14:13
flintst0nes
This message has been deleted by flintst0nes. Reason: updated
flintst0nes
Member
Join Date: Jul 2006
Location: Germany
Old 07-30-2006 , 17:58   Re: Admin Connect Sound / Msg with STEAM-ID support
Reply With Quote #8

hmm right, hehe i'm from germany ^^ in future versions i will consider this.

ty kensai for translation (lil mistake in line 122)

now appended in a correct and english version 1.1

Quote:
Originally Posted by kingzope
Is there any chance of this being specified per admin. Such as I can play a specific sound for a certain steam ID.
quite good idea! released in V1.2 ;) thx and +karma

*UPDATE V1.2*

- NEW CONFIG FORMAT
- added STEAM ID support, so any admin can have his own sound (thx to kingzope for the idea)
- elder features still working
__________________
my aPlugins | Show me the time (a clock and info plugin)

Please click +karma if I was helpful
flintst0nes is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 07-31-2006 , 00:44   Re: Admin Connect Sound / Msg with STEAM-ID support
Reply With Quote #9

thanks for the version update but i edited your sma and recompiled so it can say good things about me =) when i join my server lol hope ya dont mind. had 5 errors compileing on site but works well.

thanks again
iclassdon is offline
Send a message via MSN to iclassdon
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 07-31-2006 , 01:56   Re: Admin Connect Sound / Msg with STEAM-ID support
Reply With Quote #10

I suggest adding multilingual support in the original plugin.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Old 07-31-2006, 08:34
flintst0nes
This message has been deleted by flintst0nes. Reason: updated
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode