Raised This Month: $120 Target: $400
 30% 

[TF2]MOTD backpack(With player menu)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Munra
Senior Member
Join Date: May 2004
Plugin ID:
2043
Plugin Version:
3.0
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    115 
    Plugin Description:
    Brings up a player's backpack with a say command
    Old 10-30-2010 , 23:17   [TF2]MOTD backpack(With player menu)
    Reply With Quote #1

    Description
    This plugin brings up a player's backpack in an MOTD window, with player menu

    Say Commands
    !backpack
    !bp
    !sbp

    ConVars
    motdbp_version - Plugin Version
    motdbp_advert - Enable or disable the plugin advert (Disabled by default)
    motdbp_adtime - Time between adverts Min: 5 seconds Max: 15 minutes
    motdbp_fullscreen - Enable or disable fullscreen windows (Enabled by Default)
    motdbp_message - Set a custom advert message You can use any RGBA or RGB color {#RRGGBB} or {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN} and \n to start a new line
    motdbp_site - Choose a BackPack Site, 0 = TF2OutPost.com, 1 = TF2B.com, 2 = TF2items.com

    How to use advert colors
    You can use any RGB(A) color with {#RRGGBB} or {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
    Here is an online color picker.
    Using /n will start a new line


    Example 1:
    Code:
    {TEAM}View a backpack by typing {DEFAULT}!bp {TEAM}or {DEFAULT}!bp [playername]
    Example 2:
    Code:
    {#0B7A7A}View a backpack by typing {#C1E823}!bp {#0B7A7A}or {#C1E823}!bp [playername] \n{#9E1145}View STEAM Inventory by typing {#C1E823}!sbp {#9E1145}or {#C1E823}!sbp [playername]
    This plugin will now auto create a config file. plugin.motd.backpack.cfg can be found in your cfg/sourcemod folder
    It is recommended, when updating that you delete the current cfg file, upload the smx, and restart the server. If you change the map or reload the plugin, sourcemod will recreate the old cfg in memory.

    Spoiler


    Usage
    Type !backpack <players name>
    Brings up the players backpack in an MOTD window
    Type !sbp <players name>
    Brings up the players steam inventory in an MOTD window
    Type !bp or !sbp
    Displays a menu listing players.

    Special Thanks
    psychonic
    Tony "Drunken F00l" Paloma for creating and maintaining TF2items.com
    Sneeza for maintaining TF2Outpost
    bottiger for his much neater code and removing the extension requirement.
    11530 for adding additional features.

    ToDo
    Add Avert[Done in 1.0.1]
    Allow Custom Advert [Done in 2.2]
    Add Player menu [Done in 2.0]

    Notes
    Only Tested on a windows server.
    Setting your steam profile to private will also make your backpack private.
    Alternate support and download topic
    Test server: 216.231.142.5:27015
    Test server: 216.231.142.60:27015

    History
    1.0.0 Initial Release
    1.0.1 Added plugin advert
    2.0
    Added playermenu
    Removed CSsteamid extension requirement
    defaulted adverts to 0
    Added bottiger as co-author

    2.1
    Added bug fixes by 11530 in post #35 and Post #46
    2.2
    Added fullscreen MOTD support (Thanks to 11530)
    Added Custom advert message (Thanks to 11530)
    Auto Creates a config file
    Removed some obsolete code
    Changed RegConsoleCmd to RegAdminCmd so admins overrides could still be used (Thanks 11530)
    Changed obsolete variable names to more accurately represent the current version (Thanks 11530)

    3.0
    Added TF2Outpost.com and TF2B.com as additional backpack sites
    Added !sbp which loads the user's Steam Inventory from TF2Outpost.com
    Blocks the MOTD refreshing upon death. Comment Out line 12 to allow MOTD refresh (Thanks 11530)
    The custom advert now allows for colors (Thanks 11530)
    The custom advert now allows for new lines (Thanks 11530)
    Added 11530's calculation for community id found in this post (Thanks 11530)


    Previous views 903
    Attached Files
    File Type: sp Get Plugin or Get Source (MotdBackPack.sp - 5891 views - 11.3 KB)
    __________________
    http://anbservers.net
    My Plugins
    PMs for support will be ignored please use the plugin topic for support.

    Last edited by Munra; 08-01-2012 at 23:47. Reason: Update
    Munra is offline
    [AiF] Biggs
    Member
    Join Date: Jan 2008
    Location: Statesboro, GA
    Old 10-30-2010 , 23:52   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #2

    Nice.
    __________________
    [AiF] Biggs is offline
    Invader Amoto
    Member
    Join Date: May 2009
    Old 10-31-2010 , 04:16   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #3

    I just tried this out on my linux server. It works excellently.

    Thank you so much for this.
    The many people in my servers thank you.

    EDIT: I do find it occasionally says "invalid target" even though it will work on the same guy the next time I type it, but it's rare. As it is, this plugin is excellent.

    Last edited by Invader Amoto; 10-31-2010 at 04:21.
    Invader Amoto is offline
    danmon
    Member
    Join Date: Oct 2010
    Old 10-31-2010 , 16:23   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #4

    Results:
    Filename: MotdBackPack.smx
    Load error: Unable to load plugin (error 1: Unrecognizable file format)

    And i cant recompile it since there is no source for the plugin attached
    danmon is offline
    Munra
    Senior Member
    Join Date: May 2004
    Old 10-31-2010 , 17:15   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #5

    Quote:
    Originally Posted by danmon View Post
    Results:
    Filename: MotdBackPack.smx
    Load error: Unable to load plugin (error 1: Unrecognizable file format)

    And i cant recompile it since there is no source for the plugin attached
    Source is attached at the top. It would be illegal for me to supply a compiled plugin without supplying its source code.

    Don't forget to add the CSsteamID.inc to your scripting/includes
    __________________
    http://anbservers.net
    My Plugins
    PMs for support will be ignored please use the plugin topic for support.

    Last edited by Munra; 10-31-2010 at 17:40.
    Munra is offline
    danmon
    Member
    Join Date: Oct 2010
    Old 11-04-2010 , 18:29   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #6

    Quote:
    Originally Posted by Munra View Post
    Source is attached at the top. It would be illegal for me to supply a compiled plugin without supplying its source code.

    Don't forget to add the CSsteamID.inc to your scripting/includes
    warning 217: loose indentation

    edit: it works after i recompiled but a completely harmless warning came up while recompiling: warning 217: loose indentation

    Last edited by danmon; 11-04-2010 at 19:08.
    danmon is offline
    Munra
    Senior Member
    Join Date: May 2004
    Old 11-04-2010 , 19:57   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #7

    Quote:
    Originally Posted by danmon View Post
    warning 217: loose indentation

    edit: it works after i recompiled but a completely harmless warning came up while recompiling: warning 217: loose indentation


    Yes I know I tried for an hour to find out why cause in notepad++ it looks fine. I will fix it in the next update.
    __________________
    http://anbservers.net
    My Plugins
    PMs for support will be ignored please use the plugin topic for support.
    Munra is offline
    naris
    AlliedModders Donor
    Join Date: Dec 2006
    Old 11-05-2010 , 00:52   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #8

    Quote:
    Originally Posted by danmon View Post
    warning 217: loose indentation
    That is often a tabs vs. spaces thing.
    naris is offline
    Coyote_Starrk
    Junior Member
    Join Date: Feb 2013
    Old 02-05-2013 , 13:08   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #9

    I can not find the .smx
    Yes, indeed i am new to Making servers,
    But i expected it just to be in the "attached files"
    But it was not.
    Where is it?
    I have succsellfy made 2 tf2 servers.
    But is there no .smx for this addon ?
    (my servers)
    MvM 30k server :connect 82.47.110.106:27015
    My trade server : connect 82.47.110.106:27018

    Last edited by Coyote_Starrk; 02-05-2013 at 13:12.
    Coyote_Starrk is offline
    11530
    Veteran Member
    Join Date: Sep 2011
    Location: Underworld
    Old 02-05-2013 , 13:29   Re: [TF2]Player's TF2items.com backpack
    Reply With Quote #10

    Quote:
    Originally Posted by Coyote_Starrk View Post
    I can not find the .smx
    Yes, indeed i am new to Making servers,
    But i expected it just to be in the "attached files"
    But it was not.
    Where is it?
    I have succsellfy made 2 tf2 servers.
    But is there no .smx for this addon ?
    (my servers)
    MvM 30k server :connect 82.47.110.106:27015
    My trade server : connect 82.47.110.106:27018
    Bottom of the first post, on the first page. Click the words "Get Plugin".
    __________________
    11530 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 01:08.


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