Raised This Month: $32 Target: $400
 8% 

[CS:GO] Players Join Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Spy S2
New Member
Join Date: Aug 2017
Plugin ID:
5794
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Message in the chat when a player enters your server.
    Unapprover:
    Reason for Unapproving:
    https://forums.alliedmods.net/showpost.php?p=2545875&postcount=7
    Old 08-29-2017 , 13:03   [CS:GO] Players Join Message
    Reply With Quote #1

    Hello guys, sorry for my bad english...

    Requeriments:

    Colors.inc
    Sourcemod


    Connect Mensage http://imgur.com/F2Zb5Dr

    Disconnect Mensage http://imgur.com/xFJW4Hz



    This plugin show messages to player connect, and STEAMID, Country, IP and Name.





    Ex:
    |[*] Player: <PlayerName>
    |[*] STEAM_ID: <Steam_ID Player>
    |[*] Country: <Country Player>




    On this plugin have IP connections. To disable is only install "Connections_NoIP"


    How to install?

    Oh...It's a basic.
    Enter in the files Addons/Sourcemod/Plugins
    It's simple and restart your server.


    Any question just add me on Steam:

    http://steamcommunity.com/id/spyexe/
    Blocked Attachments
    File Type: smx Connections_IP.smx
    File Type: smx Connections_NoIP.smx
    File Type: sp Source_Connections.sp

    Last edited by Spy S2; 08-29-2017 at 17:36. Reason: Complement information
    Spy S2 is offline
    waylander3
    Senior Member
    Join Date: Sep 2015
    Location: Russia, Norilsk
    Old 08-29-2017 , 13:23   Re: [CS:GO] Players Join Message
    Reply With Quote #2

    If i need Name, Steam_ID and IP, but doesn't need Country, what i must install?
    waylander3 is offline
    Vaggelis
    Senior Member
    Join Date: May 2017
    Old 08-29-2017 , 13:30   Re: [CS:GO] Players Join Message
    Reply With Quote #3

    Similar plugins exist like this https://forums.alliedmods.net/showthread.php?p=2317313
    and this https://forums.alliedmods.net/showthread.php?p=2480656
    Vaggelis is offline
    Spy S2
    New Member
    Join Date: Aug 2017
    Old 08-29-2017 , 13:58   Re: [CS:GO] Players Join Message
    Reply With Quote #4

    Quote:
    Originally Posted by waylander3 View Post
    If i need Name, Steam_ID and IP, but doesn't need Country, what i must install?

    Just put two // before the Country as in the example below:



    . if(GeoipCountry(ip, country, sizeof(country)))
    . {
    . //CPrintToChatAll("{darkred}[*] {default}Country: {green}%s", country);
    . }
    . else
    . {
    . //CPrintToChatAll("{darkred}[*] {default}Country: {green}Undefined.");
    . }



    If this does not work, just delete the part of the Country
    And the .sp file will look like this.

    #include <sourcemod>
    #include <geoip>
    #include <colors>

    public Plugin:myinfo =
    {
    name = "[CS:GO] Players Join Message",
    author = "Spy",
    description = "Message in the chat when a player enters your server.",
    version = "1.1",
    url = "https://forums.alliedmods.net"
    };


    public OnClientPutInServer(client)
    {
    decl String:name[128];
    decl String:steamid[128];
    decl String:ip[128];
    decl String:country[128];

    GetClientName(client, name, sizeof(name));
    CPrintToChatAll("{darkred}[*] {default}Player: {green}%s", name);

    GetClientAuthString(client, steamid, sizeof(steamid));
    CPrintToChatAll("{darkred}[*] {default}SteamID: {green}%s", steamid);

    GetClientIP(client, ip, sizeof(ip), false);
    CPrintToChatAll("{darkred}[*] {default}IP: {green}%s", ip);

    }

    public OnClientDisconnect(client)
    {
    decl String:name[128];
    decl String:steamid[128];

    GetClientName(client, name, sizeof(name));
    GetClientAuthString(client, steamid, sizeof(steamid));

    CPrintToChatAll("{darkred}[*] {default}The player {green}%s {darkred}STEAMID: %s{default} desconected.", name, steamid);
    }

    Last edited by Spy S2; 08-29-2017 at 14:01.
    Spy S2 is offline
    waylander3
    Senior Member
    Join Date: Sep 2015
    Location: Russia, Norilsk
    Old 08-29-2017 , 15:31   Re: [CS:GO] Players Join Message
    Reply With Quote #5

    //SourceMod Batch Compiler
    // by the SourceMod Dev Team


    //// chat.sp
    //
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\include\colors.inc(596) : error 017: undefined symbol "MuCo_LoopClients"
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\include\colors.inc(597) : warning 217: loose indentation
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\include\colors.inc(597) : error 017: undefined symbol "i"
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\chat.sp(23) : error 017: undefined symbol "CPrintToChatAll"
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\chat.sp(25) : warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId
    //
    //
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\chat.sp(26) : error 017: undefined symbol "CPrintToChatAll"
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\chat.sp(29) : error 017: undefined symbol "CPrintToChatAll"
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\chat.sp(20) : warning 203: symbol is never used: "country"
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\chat.sp(39) : warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId
    //
    //
    // C:\Users\wayLANder\Desktop\sourcemod\scriptin g\chat.sp(41) : error 017: undefined symbol "CPrintToChatAll"
    //
    // 6 Errors.
    //
    // Compilation Time: 0,19 sec
    // ----------------------------------------

    Press enter to exit ...
    waylander3 is offline
    sHoC
    Senior Member
    Join Date: Nov 2015
    Location: Italy
    Old 09-01-2017 , 14:19   Re: [CS:GO] Players Join Message
    Reply With Quote #6

    Can you add a sound for connect?
    Can i have the source code of Connections_NoIP.smx pls? I want to use this plugin but I want to remove disconnect info, I want only info connect without IP
    __________________

    Last edited by sHoC; 09-01-2017 at 14:43.
    sHoC is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 09-01-2017 , 15:11   Re: [CS:GO] Players Join Message
    Reply With Quote #7

    There are some serious problem with this plugin.

    1) Missing source code (AGAIN?!?).
    2) Typos in messages.
    3) Using deprecated functions.
    4) Using decl.
    5) Using GetClientName instead of %N.
    6) Duplicating a great many plugins that do not have these problems.
    __________________

    Last edited by asherkin; 09-01-2017 at 15:12.
    asherkin is offline
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 09-10-2017 , 03:39   Re: [CS:GO] Players Join Message
    Reply With Quote #8

    Quote:
    Originally Posted by asherkin View Post
    There are some serious problem with this plugin.

    1) Missing source code (AGAIN?!?).
    2) Typos in messages.
    3) Using deprecated functions.
    4) Using decl.
    5) Using GetClientName instead of %N.
    6) Duplicating a great many plugins that do not have these problems.
    Until the following are changed I am unapproving this plugin
    headline 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 23:18.


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