View Single Post
Author Message
Fredd
Veteran Member
Join Date: Jul 2007
Old 08-23-2007 , 16:57   CD Announcer v2.3 Beta
Reply With Quote #1

CD Announcer v2.3 Beta

Description
This plugin will play a sound when a user connects or disconnect and it will print message with the user's info like steamid, ip, country...it also has a feature to log the messages to a log file...

Credits
  • dalto
  • pRED

CVARS

cd_mode - 1 = by SteamId, 2 = by Ip, 3 = ip and SteamId (Def 1)
cd_showall - 1 = show all(connects, and disconnects), 2 = show connects only, 3 = show disconnects only (Def 1)
cd_sound - Toggles sound on and off (Def 1 = on)
cd_printcountry - Turns on\off priting country names 0 = off, 1= on (Def 1)
cd_showadmins - Shows Admins on connect/disconnect, 0= don't show, 1 = show (Def 1)
cd_country_type - country name print type 1 = print shortname, 2 = print full name(Def 1)
cd_sound_file - Sound file location to be played on a connect/disconnect under the sounds directory (Def =buttons/blip1.wav)
cd_loggin - 0 to turn off logging, 1 to make it log connects and disconnects and make them also print in chat and 2 is to make the annoucers only log to the file and nothing in chat (Def 1)
cd_logfile - default file location of the log file relative to the sourcemod directory DEF = "data/cd_logs.log"

Changelog
1.0 Intial Release
1.1 Added cvar opition for showing Steamid and Ip at the same time
1.2 added geoip country prefirx's and enable disable sound cvar
1.3 Added cd_showadmins cvar to show\hide admin connect\disconnect
1.4 Changed:OnClientConnect(client) to OnClientPostAdminCheck(client) to make sure admins are set for GetUserAdmin(client)
1.5: fixed GetUserAdmin bug
1.6: fixed typo thx to kaschenko and added cd_country_type ( 1= print short name, 2= print full name. this is untested give me feedback)
1.7: no more messages for bots\fakeclients
2.0:
  • fixed all knows bugs
  • added a cvar change the sound file that is played *feature not tested*
  • Added a logging feature to create log a file under addons/sourcemod/data with a list of all the connects and disconnects..
2.1: file handle errors should be fixed.
2.2: added a cvar to show all messages, connects, or disconnect only and translations support..
2.3: added all type of fun stuff..all of this is beta and not tested by myself yet.
  • added config file support for cvars on map change or w\e its called
  • changed how does "cd_loggin" works see cvar decscription
  • cvar for log file location relative to the sourcemod directory
  • the good part which might be very unstable is the customizing the translations...look at the phrases file for more info


IMPORTANT* the log file will be auto created under addons/sourcemod/data/ you don't need to create anything the log file will never be reseted unless if you delete it, it's recommend that people delete it weekly or else it will get really big..

If you see another message in the chat when a user connect rather than the standard hl2 engine message then it is pRED's Super Commands message if you that removed just simply set 'sm_connectannounce' to 0...Hai pRED

Dont click on the get plugin download the separate .smx due to me changing something in the geoip.inc file it is also attached...

place the .smx in your plugins folder and place the .phrases in your translations folder.
Attached Files
File Type: inc geoip.inc (3.3 KB, 10150 views)
File Type: txt cdannouncer.phrases.txt (1.8 KB, 12499 views)
File Type: sp Get Plugin or Get Source (cd_announcer.sp - 8222 views - 11.6 KB)
File Type: smx cd_announcer.smx (6.1 KB, 14402 views)
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!

Last edited by Fredd; 08-21-2008 at 03:18.
Fredd is offline