Raised This Month: $ Target: $400
 0% 

Connect Announce


Post New Thread Reply   
 
Thread Tools Display Modes
turk89
Member
Join Date: Jul 2010
Old 07-14-2010 , 17:21   Re: Connect Announce
Reply With Quote #491

I have not touched anything. Now I have restarted the server several times, it still shows those two letters and not "LAN"? Hmm.
turk89 is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 07-14-2010 , 18:30   Re: Connect Announce
Reply With Quote #492

Well i dont know then, the issue was the string variable for the short country code wasnt allowing for 3 characters, since all the classic country codes are 2 characters. Now it allows for 3 so i dont get it. Its also unchanged from the pre-release versions posted in the thread which did work so im stumped.
__________________
Arg! is offline
turk89
Member
Join Date: Jul 2010
Old 07-14-2010 , 19:03   Re: Connect Announce
Reply With Quote #493

This is so wierd. I mean, it worked like a charm yesterday, but now it wont work properly *sigh*.

I have now reinstalled the plugin and it still shows two letters "LA" instead of "LAN".

Last edited by turk89; 07-14-2010 at 20:54.
turk89 is offline
nicoh93
Member
Join Date: Apr 2010
Old 07-14-2010 , 23:11   Re: Connect Announce
Reply With Quote #494

There is no way to add colors? olive, blue, red... ??

http://forums.alliedmods.net/showthread.php?t=96831
nicoh93 is offline
avitardotnet
Junior Member
Join Date: Feb 2009
Location: CA, USA
Old 07-15-2010 , 01:57   Re: Connect Announce
Reply With Quote #495

Arg!

I love the plugin, however I would like it even more if it had a logging option preferably controlled by a cvar(s).

In my server I only use it to display player info for admins when players connect or disconnect (player name, steam id, ip address, country). I would love if you added this so I don't need to hack your plugin up each time you update it.

My guess is you would probably only need to add the enable/disable logic and something like:

Code:
PrintFormattedMsgToLog( String:rawmsg[301], client )
{
    decl String:message[301];
    GetFormattedMessage( rawmsg, client, message, sizeof(message) );
    
    new String:timestamp[128];
    FormatTime(timestamp, sizeof(timestamp), "%y-%m-%d %T", GetTime()); 
    
    new String:logname[128];
    FormatTime(logname, sizeof(logname), "%y-%m-%d", GetTime());     
    
    decl String:file[PLATFORM_MAX_PATH];
    BuildPath(Path_SM, file, sizeof(file), "logs/ca_%s.log", logname);
    LogToFileEx(file, "[%s] %s", timestamp, message);
}
What do you think?

Last edited by avitardotnet; 07-15-2010 at 02:11.
avitardotnet is offline
Arg!
Veteran Member
Join Date: Jul 2008
Location: Australia
Old 07-15-2010 , 02:33   Re: Connect Announce
Reply With Quote #496

surely its easier to use a stats program or srcds log file analyser for this.
__________________
Arg! is offline
nicoh93
Member
Join Date: Apr 2010
Old 07-15-2010 , 02:48   Re: Connect Announce
Reply With Quote #497

seems that there is not much interest in adding more colors XD
nicoh93 is offline
turk89
Member
Join Date: Jul 2010
Old 07-15-2010 , 10:57   Re: Connect Announce
Reply With Quote #498

Arg! I am thinking about this plugin's performance while working together with other plugins?

Here is the list of my plugins:
Code:
  01 "Admin File Reader" (1.3.3) by AlliedModders LLC
  02 "Admin Help" (1.3.3) by AlliedModders LLC
  03 "Admin List" (1.2) by Fredd
  04 "Admin Menu" (1.3.3) by AlliedModders LLC
  05 "Admin Smite" (2.1) by Hipster
  06 "Advertisements" (0.5.5) by Tsunami
  07 "AFK Manager" (3.2.9) by Rothgar
  08 "Anti-Flood" (1.3.3) by AlliedModders LLC
  09 "Basic Chat" (1.3.3) by AlliedModders LLC
  10 "Basic Comm Control" (1.3.3) by AlliedModders LLC
  11 "Basic Commands" (1.3.3) by AlliedModders LLC
  12 "Basic Info Triggers" (1.3.3) by AlliedModders LLC
  13 "Basic Votes" (1.3.3) by AlliedModders LLC
  14 "Connect Announce" (1.2.1) by Arg!
  15 "Client Preferences" (1.3.3) by AlliedModders LLC
  16 "Fun Commands" (1.3.3) by AlliedModders LLC
  17 "Fun Votes" (1.3.3) by AlliedModders LLC
  18 "In-game Help Menu" (0.3) by chundo
  19 "High Ping Kicker - Lite Edition" (1.0.0.1) by Liam
  20 "Kigen's Anti-Cheat" (1.2.1.1) by Kigen
  21 "Nextmap" (1.3.3) by AlliedModders LLC
  22 "Player Commands" (1.3.3) by AlliedModders LLC
  23 "Reserved Slots" (1.3.3) by AlliedModders LLC
  24 "Menu Based Rules" (1.5.1) by XARiUS
  25 "Sound Commands" (1.3.3) by AlliedModders LLC
  26 "SourceBans" (1.4.6) by InterWave Studios Development Team
  27 "TeamSwitch" (1.5) by MistaGee (Modifed by Snake 60, Will)
  28 "Web Shortcuts" (1.0.1) by James "sslice" Gray
What do you say? Still not found out why that {PLAYERCOUNTRYSHORT} (= not showing 3 letters) doesn't work when joining from Local Host/Local Network?

Last edited by turk89; 07-15-2010 at 11:03.
turk89 is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 07-15-2010 , 11:27   Re: Connect Announce
Reply With Quote #499

Arg!: http://forums.alliedmods.net/showthread.php?t=132470
GoD-Tony is offline
avitardotnet
Junior Member
Join Date: Feb 2009
Location: CA, USA
Old 07-15-2010 , 21:45   Re: Connect Announce
Reply With Quote #500

Quote:
Originally Posted by Arg! View Post
surely its easier to use a stats program or srcds log file analyser for this.
I only want to log the Connect Announce messages. Why would I want to use a full logging or stats plugin when I only want to log the connection and disconnection messages?
avitardotnet is offline
Reply



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 11:55.


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