Raised This Month: $ Target: $400
 0% 

Steam Announce V1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Rizla
SourceMod Donor
Join Date: Jun 2010
Plugin ID:
2796
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Announces player name and Steam ID on player connect and disconnect
    Unapprover:
    Reason for Unapproving:
    Duplicate of https://forums.alliedmods.net/showthread.php?p=683858
    Old 02-06-2012 , 11:39   Steam Announce V1.1
    Reply With Quote #1

    Steam Announce
    A simple plugin that prints the player name and steam id only to chat for all to see. It is useful for cheaters (getting their Steam ID before they start name changing) and/or rule breakers (who leave).

    This is similar to Connect Annouce and the like except this is stripped right down for just the player name and their steam id.

    This is my first self coded plugin and am new to sourcepawn, so will take any advice and criticisms. I thought with the influx of cheaters lately that use name changers etc., a lightweight plugin liek this could come in handy.

    Installation
    steamannounce.sp -> addons/sourcemod/scripting
    steamannounce.smx -> addons/sourcemod/plugins

    Requires no restart, just type in to console

    rcon sm plugins load steamannounce

    CVars
    Just one;

    sm_steam_announce_version

    This will just show the version, 1.0.


    Example
    [CON] Rizla : STEAM_0:1:23866547 (for when I connect)

    [DC] Rizla : STEAM_0:1:23866547 (for when I disconnect)

    Changelog
    1.0
    Initial release

    1.1
    Stopped bots being shown, removed some unneeded code
    (minor) fixed missing chars and another small fix (x 2 )

    I doubt this will ever need updating for bug fixes etc. (unless ive made an error), but i will try to provide any support required.

    Tested in Counter-Strike Source, don't see any reason it wouldn't work in other source based games (correct me if im wrong)

    More than welcome to use the code, edit it and so on and so forth.
    Attached Files
    File Type: smx steamannounce.smx (2.8 KB, 596 views)
    File Type: sp Get Plugin or Get Source (steamannounce.sp - 2003 views - 1.3 KB)

    Last edited by Dr. McKay; 10-07-2012 at 09:29. Reason: Feedback given
    Rizla is offline
    duydangle
    Senior Member
    Join Date: May 2010
    Old 02-06-2012 , 12:25   Re: Steam Announce
    Reply With Quote #2

    I thought that many plugins have these functions?
    duydangle is offline
    Rizla
    SourceMod Donor
    Join Date: Jun 2010
    Old 02-06-2012 , 12:46   Re: Steam Announce
    Reply With Quote #3

    its stripped right down so its light weight, many plugins might have it, but if you read:

    This is similar to Connect Annouce and the like except this is stripped right down for just the player name and their steam id.
    Rizla is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 02-06-2012 , 16:42   Re: Steam Announce
    Reply With Quote #4

    Wonderfull job, Looking for such a thing for awhile now.

    Does this plugin not show BOTS that rejoin and disconnect. Becos that would be wonderfull.

    I had a diffrent plugin and eachtime a bot joined in again there was, BOT joinend the server Country ?
    Happy DODs player is offline
    Rizla
    SourceMod Donor
    Join Date: Jun 2010
    Old 02-06-2012 , 16:49   Re: Steam Announce
    Reply With Quote #5

    bots are ignored (or should be)
    Rizla is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 02-07-2012 , 13:58   Re: Steam Announce
    Reply With Quote #6

    Simplistic and nice. However, OnClientPostAdminCheck is called each and every map change for every client. So there can be some flooding with that. What I've thought about doing is hooking player_connect since it's only fired once for the initial connection and then never again until disconnection (regardless of map change). Then calling if the client index is in the array, or something.
    KyleS is offline
    Rizla
    SourceMod Donor
    Join Date: Jun 2010
    Old 02-07-2012 , 14:17   Re: Steam Announce
    Reply With Quote #7

    i thought there would be something like this, however:

    1. im not good enough otherwise i would, maybe set it to an option (see 2)
    2. if an admin were to join after, then the steam id wouldnt be shown (in the case of a hacker, thats no good)

    ill look in to doing it though and setting as an option, unless someone else wants a go?
    Rizla is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 02-08-2012 , 03:05   Re: Steam Announce
    Reply With Quote #8

    PHP Code:
        new server 0;
        if (!
    client || client == || client == server || !(client && client <= MaxClients) || (IsClientConnected(client) && IsFakeClient(client)))
        {
            return 
    Plugin_Continue;
        } 
    ಠ_ಠ
    __________________
    DarthNinja is offline
    Rizla
    SourceMod Donor
    Join Date: Jun 2010
    Old 02-08-2012 , 08:18   Re: Steam Announce
    Reply With Quote #9

    im assuming thats not needed on a OnClient admin thingy (w/e i used)?
    Rizla is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 02-09-2012 , 03:43   Re: Steam Announce
    Reply With Quote #10

    Bot ar shown when they enter the server.

    [CON] BOT

    Any change this can be deleted out of the plugin. If not no problem.
    Happy DODs player 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 02:29.


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