Pagina de start a forumului [=--No LIMIT--=]
Inregistrare • Cautare • FAQ • Membri • Grupuri • Autentificare
ADMIN CONNECT SOUND [AmxmodX]

 
Raspunde la subiect    Pagina de start a forumului [=--No LIMIT--=] » Plugin-uri Subiectul anterior
Subiectul urmator
ADMIN CONNECT SOUND [AmxmodX]
Autor Mesaj
mississippi
Goodness
Goodness
mississippi

Data inscrierii: 22/Feb/2007
Mesaje: 107
Localitate: Bucuresti

Mesaj ADMIN CONNECT SOUND [AmxmodX] Raspunde cu citat (quote)
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
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>

[url=http://mississippi.idle.ro/down/plugins/admin_connect-leave/admins_connect-leave.rar]Download Plugin[/url]

[url=http://mississippi.idle.ro/down/plugins/admin_connect-leave/sunete_admin_connect-leave.rar]Download Sound[/url]
04/03/2007 18:28 Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:    
Raspunde la subiect    Pagina de start a forumului [=--No LIMIT--=] » Plugin-uri Ora este GMT + 2 ore
Pagina 1 din 1

 
Mergi direct la: 
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro