Monthly Target: $400 Donations: $293
 73% 

CD Announcer v2.3 Beta


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Fredd
Veteran Member
Join Date: Jul 2007
Plugin ID:
152
Plugin Version:
2.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Approver:
    Plugin Description:
    Print user Steamid\Ip\Country on connect\disconnect
    Servers with this Plugin:
    326 
    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, 8034 views)
    File Type: txt cdannouncer.phrases.txt (1.8 KB, 9830 views)
    File Type: sp Get Plugin or Get Source (cd_announcer.sp - 6130 views - 11.6 KB)
    File Type: smx cd_announcer.smx (6.1 KB, 11296 views)
    __________________
    Need a private coder? AMXX, SourceMOD, MMS? PM me!

    Last edited by Fredd; 08-21-2008 at 03:18.
    Fredd is offline
    dalto
    Veteran Member
    Join Date: Jul 2007
    Old 08-23-2007 , 19:37   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #2

    It would probably be more useful if it was attached.

    Last edited by dalto; 08-23-2007 at 20:08.
    dalto is offline
    Fredd
    Veteran Member
    Join Date: Jul 2007
    Old 08-23-2007 , 21:51   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #3

    Oh Noes forget it lol.
    __________________
    Need a private coder? AMXX, SourceMOD, MMS? PM me!
    Fredd is offline
    trawiator
    Senior Member
    Join Date: Nov 2004
    Location: Wroclaw, Poland
    Old 08-24-2007 , 00:44   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #4

    Can you add cd_mode 3 - Print steamid and IP adress ?
    trawiator is offline
    Send a message via ICQ to trawiator
    Fredd
    Veteran Member
    Join Date: Jul 2007
    Old 08-24-2007 , 01:37   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #5

    trawiator: just added it (not tested)
    __________________
    Need a private coder? AMXX, SourceMOD, MMS? PM me!
    Fredd is offline
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 08-24-2007 , 08:50   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #6

    Thanks for this plugin .... i was searching for it

    is there a cvar to change sound ?

    Can you add the country form the player is connecting ( using the geoip ) ?

    cya
    __________________

    Last edited by Rebell; 08-24-2007 at 09:00.
    Rebell is offline
    misfit
    Member
    Join Date: Aug 2007
    Location: upstate New York
    Old 08-24-2007 , 16:14   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #7

    Quote:
    Originally Posted by Rebell View Post

    is there a cvar to change sound ?
    ...or disable it?
    misfit is offline
    Fredd
    Veteran Member
    Join Date: Jul 2007
    Old 08-24-2007 , 21:41   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #8

    Done.
    __________________
    Need a private coder? AMXX, SourceMOD, MMS? PM me!
    Fredd is offline
    misfit
    Member
    Join Date: Aug 2007
    Location: upstate New York
    Old 08-25-2007 , 01:54   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #9

    Fredd, thanks. :-)

    It prints 'connected' when players connect AND disconnect, but works great.
    misfit is offline
    Kaschenko
    SourceMod Donor
    Join Date: Apr 2006
    Location: Country: Russia; City: M
    Old 08-25-2007 , 03:09   Re: Connect/Disconnect Announcer with Sounds
    Reply With Quote #10

    It is possible to make, that data admin were not shown? To make immunity for the administrator it is possible? It would be very COOL!
    please
    __________________
    Kaschenko is offline
    Send a message via ICQ to Kaschenko Send a message via MSN to Kaschenko Send a message via Skype™ to Kaschenko
    Reply


    Thread Tools
    Display Modes

    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 13:35.


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