AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   CD Announcer v2.3 Beta (https://forums.alliedmods.net/showthread.php?t=59949)

Fredd 08-23-2007 16:57

CD Announcer v2.3 Beta
 
4 Attachment(s)
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.

dalto 08-23-2007 19:37

Re: Connect/Disconnect Announcer with Sounds
 
It would probably be more useful if it was attached.

Fredd 08-23-2007 21:51

Re: Connect/Disconnect Announcer with Sounds
 
Oh Noes forget it lol.

trawiator 08-24-2007 00:44

Re: Connect/Disconnect Announcer with Sounds
 
Can you add cd_mode 3 - Print steamid and IP adress ?

Fredd 08-24-2007 01:37

Re: Connect/Disconnect Announcer with Sounds
 
trawiator: just added it (not tested)

Rebell 08-24-2007 08:50

Re: Connect/Disconnect Announcer with Sounds
 
Thanks for this plugin .... i was searching for it :up:

is there a cvar to change sound ?

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

cya

misfit 08-24-2007 16:14

Re: Connect/Disconnect Announcer with Sounds
 
Quote:

Originally Posted by Rebell (Post 522714)

is there a cvar to change sound ?

...or disable it?

Fredd 08-24-2007 21:41

Re: Connect/Disconnect Announcer with Sounds
 
Done.

misfit 08-25-2007 01:54

Re: Connect/Disconnect Announcer with Sounds
 
Fredd, thanks. :-)

It prints 'connected' when players connect AND disconnect, but works great.

Kaschenko 08-25-2007 03:09

Re: Connect/Disconnect Announcer with Sounds
 
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


All times are GMT -4. The time now is 09:17.

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