[TF2]MOTD backpack(With player menu)
1 Attachment(s)
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] 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] 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 |
Re: [TF2]Player's TF2items.com backpack
Nice.
|
Re: [TF2]Player's TF2items.com backpack
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. |
Re: [TF2]Player's TF2items.com backpack
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 :cry: |
Re: [TF2]Player's TF2items.com backpack
Quote:
Don't forget to add the CSsteamID.inc to your scripting/includes |
Re: [TF2]Player's TF2items.com backpack
Rather a coincidence when I requested this on the TF2Items channels a few days ago.. and tada, now someone has created it, hah.
|
Re: [TF2]Player's TF2items.com backpack
Excellent plugin, and here's a suggestion:
Make the !backpack/!bp command open a menu with the players list, then you choose the player you want to see the backpack. ;) |
Re: [TF2]Player's TF2items.com backpack
Quote:
In the mean time you can make your own custom menu. Also you don't have to use the full players name, Like for me you could just do !backpack Mun and it should still bring up my backpack |
Re: [TF2]Player's TF2items.com backpack
Plugin updated
Added an Advert |
Re: [TF2]Player's TF2items.com backpack
Make the advert as a plugin cvar so it can be disabled :).
|
Re: [TF2]Player's TF2items.com backpack
Quote:
motdbp_advert - Enable or disable the plugin advert |
Re: [TF2]Player's TF2items.com backpack
:crab: My Server HMFICC wants to Know were a server is he can see with this mod working and see what it does and how it works before he will add it to our servers.
thanks :mrgreen: |
Re: [TF2]Player's TF2items.com backpack
Quote:
Test server: 205.234.203.86:27015 |
Re: [TF2]Player's TF2items.com backpack
195.242.237.116:29090
85.234.148.4:27065 207.210.252.207:27015 All my trade servers are using it as well. You are welcome to test away. |
Re: [TF2]Player's TF2items.com backpack
Quote:
I meant to edit my post as I seen it just after I posted Quote:
I have all ready looked at it on Munras test server. For me it Looks pretty darn good so hopefully the powers that be will allow it. As it seems some times that I am 2nd in command and at other times that I have little to no Powers. LMAO but Hatty is the man and Munra is the Server GOD for these things Thumbs up my Friend good work. :avast: |
Re: [TF2]Player's TF2items.com backpack
Quote:
edit: it works after i recompiled but a completely harmless warning came up while recompiling: warning 217: loose indentation |
Re: [TF2]Player's TF2items.com backpack
Quote:
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. |
Re: [TF2]Player's TF2items.com backpack
Quote:
|
Re: [TF2]Player's TF2items.com backpack
Quote:
|
Re: [TF2]Player's TF2items.com backpack
Thanks I noticed the problems in pastebin.
Like I said it will be fixed most likely this weekend when I add the player menu. |
Re: [TF2]Player's TF2items.com backpack
Works great on both my linux boxes, thanks :)
|
Re: [TF2]Player's TF2items.com backpack
Quick question.. I've loaded the plugin on my Linux server, but it pops up a blank motd window, any idea why? Did I miss something?
**Edit- Nevermind.. server restart fixed it, works fine. Thanks! |
Re: [TF2]Player's TF2items.com backpack
Quote:
|
Re: [TF2]Player's TF2items.com backpack
GREAT PLUGIN THANNKS
|
Re: [TF2]Player's TF2items.com backpack
I was trying to add an option to access the plugin to my menu. When I try to use it, it tells me "No matching client was found". Any idea how to make it work?
Code:
"View Backpack" |
Re: [TF2]TF2items.com MOTD backpack
updated
2.0 Added playermenu Removed CSsteamid extension requirement defaulted adverts to 0 |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Nice.
Now if tf2b would adapt thier site, that could be added in too. Thankyou for this great plugin. |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Quote:
Are you using it? I didnt really test it to much hopefully its working ok. |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Any Way I can get this approved? Its been working for 8 months now.
|
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Hello.
1.) On line 58 you have the right idea as this will error out if the console runs the command. However, you never return Plugin_Handled so execution continues. 2.) If the target is invalid you're displaying the clients own backpack. Are you sure about this? 3.) In DisplayBackpack you get the targets Auth String, however the functions that you're using to select targets doesn't guarantee they're authorized (FindTarget). So you have the potential of filling itemsurl with garbage. 4.) Adverts default to disabled. If the value isn't changed, the timer is still running with the way it's currently setup. 5.) Why is this labeled as TF2? Wouldn't this work on any game? Hope this helps, PM me if you fix these. |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: [TF2]TF2items.com MOTD backpack(With player menu)
works great, thanks!
one issue; it keeps printing the advertisement, every 30 seconds or so. it does this with the cvar set to 600 seconds, and even with advert disabled entirely. any ideas? on windows server |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
I just noticed an issue with the adverts too. You made a mistake in the code.
You forgot to tell the plugin to read the state of the cvar controlling the advert state. Code:
//Timer for adverts Code:
//Timer for adverts |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Munra may be able to fix the bug within a week.
|
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Quote:
Code:
if (GetConVarBool(g_Adverts)) Code:
if (g_Adtimer != INVALID_HANDLE) Edit: See Post #46 for the latest edits. |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Thankyou.
|
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Hi i am having some problems installing this plugin on my server.
I use a Windows Tf2 server and have installed the : Sourcemod - sourcemod-1.4.0-windows Metamod - mmsource-1.8.7-windows I downloaded the plugin and installed it on the plugins folder, and restarted completly my server. I can see the advertisings and the player menu, but when i choose the player the motd appears but with nothing inside. Also i am aiming to a player and say !bp , but instead show the motd with the player backpack it shows the menu Can someone help me please ? |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
I just checked it works in my server just give it a minute or 2 to to load the motd the first time then it should be good. That part of it is out of my hands.
|
Re: [TF2]TF2items.com MOTD backpack(With player menu)
Quote:
I FORGOT to enable HTML in my steam... Its cool now, thanks for this cool plugin ^^ |
Re: [TF2]TF2items.com MOTD backpack(With player menu)
until the bug is fixed, it seems turning the adverts on and then off in your config file will work around this issue. thank you.
|
All times are GMT -4. The time now is 19:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.