View Single Post
Author Message
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-04-2010 , 09:38   Top 10 Player HlstatsCE Announcer
Reply With Quote #1

[ALL] Top 10 Player HlstatsCE Announcer

This is my first plugin, so forgive me if i have very bad mistakes in it, someone has to learn somewhere too

Description
Basicly this plugins announces when somebody with a rank between 1 and 10 joins the servers with a nice sound and a center text message.
You do need a installation of HlstatsCE for this to work ofcourse.

Installation

Install the smx file to your plugins folder.
Add a entry to your databases.cfg

Code:
"top10"
        {
                       "driver"            "default"
                       "host"              "<your ip or hostname>"
                        "database"          "hlstatsx"
                        "user"              "<your db userid>"
                        "pass"              "<your password userid>"
        }

Cvars


[code]

"sm_top10_hlstatsce_enabled", "1", "Whether this plugin should be enabled"
"sm_top10_hlstatsce_game", buffer, "The shortname found after the game settings for particular servers on admin page"
"sm_top10_hlstatsce_text", "2", "Default message type. 1 = Center, 2 = Hint text, 3 = Regular text. Leave empty for center"
"sm_top10_hlstatsce_sounds", "addons/sourcemod/configs/top10_sounds.kv", "The config file containing the paths of sounds to play when a top10 hlstats player joins the game"

I think thats it, have fun (hopefully)

Changelog

Code:
Version 1.0
- Initial version

Version 1.01
- Added css/l4d/l4d2 support
- Added cvar sm_top10_text (location on where to display)

Version 1.02
- Added threaded sql calls
- Fixed not precaching when no sound is set
- Fixed all the loose identations
- Hooking of convars for changes (dont know yet if correct)

Version 1.03
- Fixed sound not set
- Possible fix for getting a error when client is no longer ingame

Version 1.04
- Should fix the error when bots/relays are present.

Version 2.0
- Added cookie support so that it remembers if people want to hear the see/hear the top10.
- Added custom keyvalue file, so that you can indicate which sound files you add. Because of steam pipe, you would no longer need the sounds on the server itself.
- Added now keeps tabs on hlxce, if you hide your self on hlxce it will not announce you ingame.
- Moved to github
Find the files at: https://github.com/Snelvuur/top10hlxce
Attached Thumbnails
Click image for larger version

Name:	example.png
Views:	5356
Size:	31.5 KB
ID:	74650  

Last edited by snelvuur; 05-24-2013 at 18:02. Reason: updated to version 2.0
snelvuur is offline