Raised This Month: $ Target: $400
 0% 

[L4D1 AND L4D2] Cannounce Player Info


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ernecio
Junior Member
Join Date: Sep 2019
Plugin ID:
6775
Plugin Version:
2.0.0
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Reports on chat Country, Region, City, number of survivors and reason for disconnection.
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 10-23-2019 , 18:04   [L4D1 AND L4D2] Cannounce Player Info
    Reply With Quote #1

    Cannounce Player Info

    Sorry, This Plugin has been discontinued

    Description:
    This plugin is able to show in the chat different data about the players that enter your server, the data that the plugin will show are: country, region, city, client counter and reason for disconnection by the client. all parameters are configurable in the autoxec file that is automatically generated.
    Note, this plugin has only been designed for dedicated server or local area network server, but it doesn't work if it's installed directly in the game because the data isn't displayed correctly.
    (keep in mind that this plugin uses GeoIP2 and when replacing the old files it can cause errors in plugins that work with old versions of GeoIP)

    Notes:
    This plugin is based on the original Connect Announce plugin by Arg!
    It is a basic version that is designed for L4D1/2, this plugin works with the new API GeoIP2 and new declarations of SourceMod.
    I originally hired this plugin for my servers and I decided to share with the community
    Tested in SourceMod 1.9 and SourceMod 1.10

    Commands:
    sm_geolist <name or #userid> - Print info about the specified customer.

    Current Translations:
    - English
    - Spanish

    Cvars:

    PHP Code:
    // Enables/Disables The Ads On Chat, globally disable all ads and it is only possible to see player data through command.
    // 0 = Ads OFF.
    // 1 = Ads ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_cannounce_ads_enable "1"

    // Enables/Disables The Player Counter In Chat.
    // 0 = Counter OFF.
    // 1 = Counter ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_cannounce_counter_enable "1"

    // Enables/Disables, Print The Reason For Disconnect From Player In The Chat.
    // 0 = Disable.
    // 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_cannounce_disconnect_enable "1"

    // Chat Display Mode.
    // 0 = Show Nothing.
    // 1 = Show Country, Region And City.
    // 2 = Show Country And Region.
    // 3 = Show Country And City.
    // 4 = Show Only Country.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "4.000000"
    l4d_cannounce_displya_mode "1"

    // Enables/Disables The Plugin.
    // 0 = Plugin OFF.
    // 1 = Plugin ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_connounce_enable "1" 
    Installation Instructions:
    It's necessary to have the GeoLite2-City.mmdb and GeoLite2-Country.mmdb databases at the following address: sourcemod\configs\geoip
    It's necessary to download the databases of these two links:
    City: geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
    Country: geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
    It's advisable to delete the old database: GeoIP.dat
    You must copy and replace the old file: geoip.ext In: sourcemod\extensions
    And the file: geoip.inc In: sourcemod\scripting\include
    The file: l4d_cannounce.phrases in: sourcemod\translations
    Finally the file l4d_cannounce.smx in: soucermod\plugins

    References
    https://forums.alliedmods.net/showthread.php?t=77306
    https://forums.alliedmods.net/showthread.php?t=311477
    __________________

    Last edited by Ernecio; 01-17-2023 at 17:02. Reason: Small changes in the title and category
    Ernecio is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 10-23-2019 , 19:55   Re: [L4D AND L4D2] Cannounce Player Info
    Reply With Quote #2

    L 10/24/2019 - 06:41:26: Info (map "c1m1_hotel") (file "D:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server1\left4dead2\addons\sourcemod\logs\erro rs_20191024.log")
    L 10/24/2019 - 06:41:26: [SM] Unable to load plugin "l4d_cannounce.smx": Native "GeoipRegion" was not found

    I only want to have the ability to disconnect notifications.

    Last edited by AK978; 10-23-2019 at 19:57.
    AK978 is offline
    strikeraot
    Senior Member
    Join Date: Dec 2018
    Location: Viet Nam
    Old 10-23-2019 , 21:53   Re: [L4D AND L4D2] Cannounce Player Info
    Reply With Quote #3

    Only work on Delicated server?
    strikeraot is offline
    SDArt
    Member
    Join Date: Aug 2019
    Old 10-23-2019 , 22:35   Re: [L4D AND L4D2] Cannounce Player Info
    Reply With Quote #4

    Is it possible to have country only info by only downloading the country link above or is it necessary to download both country and city for the plugin to work?
    SDArt is offline
    kochifish
    Junior Member
    Join Date: Feb 2016
    Old 04-07-2020 , 07:07   Re: [L4D1 AND L4D2] Cannounce Player Info
    Reply With Quote #5

    Hello, could you help me this problem?


    Kiee has left the game, reason: []

    There is no disconnection reason, no errors inside log folder too..

    Here is my sourcemod version and metamod version:

    SourceMod Version: 1.10.0.6478
    SourcePawn Engine: 1.10.0.6478, jit-x86 (build 1.10.0.647
    SourcePawn API: v1 = 5, v2 = 12
    Compiled on: Mar 5 2020 109:04

    Metamod:Source version 1.10.7-dev
    Built from: https://github.com/alliedmodders/met...commit/6c8495f
    Build ID: 971:6c8495f
    Loaded As: Valve Server Plugin
    Compiled on: Sep 2 2019
    Plugin interface version: 15:14
    SourceHook version: 5:5

    Thank you..
    kochifish is offline
    Red Flame
    Junior Member
    Join Date: Jan 2012
    Old 05-24-2020 , 11:22   Re: [L4D1 AND L4D2] Cannounce Player Info
    Reply With Quote #6

    Quote:
    Originally Posted by kochifish View Post
    Hello, could you help me this problem?


    Kiee has left the game, reason: []

    There is no disconnection reason, no errors inside log folder too..

    Here is my sourcemod version and metamod version:

    SourceMod Version: 1.10.0.6478
    SourcePawn Engine: 1.10.0.6478, jit-x86 (build 1.10.0.647
    SourcePawn API: v1 = 5, v2 = 12
    Compiled on: Mar 5 2020 109:04

    Metamod:Source version 1.10.7-dev
    Built from: https://github.com/alliedmodders/met...commit/6c8495f
    Build ID: 971:6c8495f
    Loaded As: Valve Server Plugin
    Compiled on: Sep 2 2019
    Plugin interface version: 15:14
    SourceHook version: 5:5

    Thank you..
    Check this, it helped me.
    https://forums.alliedmods.net/showpo...&postcount=519
    Red Flame is offline
    CaRmilla
    Member
    Join Date: Jan 2021
    Old 11-25-2021 , 14:13   Re: [L4D1 AND L4D2] Cannounce Player Info
    Reply With Quote #7

    This shows info only to admins or every player?
    CaRmilla is offline
    CosmicD
    Senior Member
    Join Date: Dec 2009
    Location: Hasselt, Belgium
    Old 04-19-2022 , 07:13   Re: [L4D1 AND L4D2] Cannounce Player Info
    Reply With Quote #8

    It's a good alternative to connect announce, but I wonder if welcome message could show the steam ID to admins only ?
    __________________
    CosmicD is offline
    Gento_aki
    Junior Member
    Join Date: Apr 2023
    Location: warga Bogor
    Old 11-08-2024 , 09:23   Re: [L4D1 AND L4D2] Cannounce Player Info
    Reply With Quote #9

    just sad i can't download it
    there same plugin like this?

    i need this plugin to tell someone join and give reason when player disconnect
    Gento_aki is offline
    Slaven555
    Member
    Join Date: Jul 2018
    Old 11-14-2024 , 02:03   Re: [L4D1 AND L4D2] Cannounce Player Info
    Reply With Quote #10

    Quote:
    Originally Posted by Gento_aki View Post
    just sad i can't download it
    there same plugin like this?

    i need this plugin to tell someone join and give reason when player disconnect
    try:

    #pragma semicolon 1
    #include <sourcemod>
    #include <sdktools>
    #include <geoip>

    #pragma newdecls required

    public void OnPluginStart()
    {
    HookEvent("player_disconnect", event_PlayerDisconnect, EventHookMode_Pre);
    }

    public void OnClientPutInServer(int client)
    {
    if (!IsFakeClient(client))
    {
    char IP[99], Country[99];

    GetClientIP(client, IP, sizeof(IP), true);

    if (!GeoipCountry(IP, Country, sizeof Country))
    {
    Country = "Unknown Region";
    }
    if (CheckCommandAccess(client, "sm_admin", ADMFLAG_GENERIC, true))
    return;

    PrintToChatAll("\x01Player: \x04%N \x01connected from (\x03%s\x01)", client, Country);
    }
    }

    public Action event_PlayerDisconnect(Event event, const char[] name, bool dontBroadcast)
    {
    int client = GetClientOfUserId(event.GetInt("userid"));

    if (client && !IsFakeClient(client))
    {
    char reason[70];
    event.GetString("reason", reason, sizeof(reason));

    {
    PrintToChatAll("\x01Player: \x04%N \x01-> \x05%s", client, reason);
    }
    }
    return Plugin_Stop;
    }
    Slaven555 is offline
    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 17:38.


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