AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Local Item Server (https://forums.alliedmods.net/showthread.php?t=189788)

Dr. McKay 07-10-2012 23:01

[TF2] Local Item Server
 
[TF2] Local Item Server

v1.1.4

Description:
Makes your loadout work even when the item server is down. Whenever someone respawns or touches a resupply cabinet, their current loadout is checked. If they are using all stock weapons and the netprop m_bLoadoutUnavailable is true, they will be given their last known loadout using TF2Items. If their loadout is available, it is saved.

Note: Hats, miscs, and action slot items won't be saved.

Cvars:
local_item_server_version - plugin version
local_item_server_auto_update - enables automatic updating (has no effect if Updater is not installed)

Installation:
Put itemserver.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load itemserver" into your console or rcon.

Requirements:
This plugin requires TF2Items Give Weapon, and consequently, TF2Items.

Auto Update:
Install Updater. The plugin will be autoupdated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.1.0 (7/12/12)
    • Added ability to disable automatic updating (local_item_server_auto_update)
  • v1.0.0 (7/10/12)
    • Initial release

Download Plugin (itemserver.smx)
View Source (itemserver.sp)

Sreaper 07-10-2012 23:15

Re: [TF2] Local Item Server
 
This is amazing! Great idea and great plugin!

Horsedick 07-10-2012 23:19

Re: [TF2] Local Item Server
 
+1 up on valve and the item server failure - nice work@!

ReFlexPoison 07-10-2012 23:24

Re: [TF2] Local Item Server
 
um.. thank you =D

MasterOfTheXP 07-10-2012 23:24

Re: [TF2] Local Item Server
 
I already made something like this, where players could choose from a menu of weapons if they didn't have any unlocks...but this...this is genius. Much better than messing with menus. Great job!

DarthNinja 07-10-2012 23:29

Re: [TF2] Local Item Server
 
PHP Code:

Format(qrysizeof(qry), "INSERT INTO `players` VALUES ('%s', -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1)"auth); 

Methinks your table needs more DEFAULT.

Dr. McKay 07-10-2012 23:35

Re: [TF2] Local Item Server
 
Quote:

Originally Posted by DarthNinja (Post 1747781)
PHP Code:

Format(qrysizeof(qry), "INSERT INTO `players` VALUES ('%s', -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1)"auth); 

Methinks your table needs more DEFAULT.

Perhaps, but it works.

Plus, I don't want to lengthen the already insanely-long create-table query with defaults. I'm under the SourcePawn line length limit by just a few characters. Like, 2, if I remember correctly.

Thanks for approving this, by the way.

Why isn't TF2Items Give Weapon showing up correctly as a dependency?

DarthNinja 07-11-2012 11:28

Re: [TF2] Local Item Server
 
Quote:

Originally Posted by Dr. McKay (Post 1747784)
Plus, I don't want to lengthen the already insanely-long create-table query with defaults. I'm under the SourcePawn line length limit by just a few characters. Like, 2, if I remember correctly.

Could you go into more detail on the subject of what you mean by "SourcePawn line length limit"?

Dr. McKay 07-11-2012 12:50

Re: [TF2] Local Item Server
 
Quote:

Originally Posted by DarthNinja (Post 1748056)
Could you go into more detail on the subject of what you mean by "SourcePawn line length limit"?

Find that ridiculously long line at the beginning and add a few characters to it, then try to compile.

Leonardo 07-11-2012 14:28

Re: [TF2] Local Item Server
 
goodjob~


All times are GMT -4. The time now is 18:41.

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