Thread: [Release] CommandItems (1.0.1)
View Single Post
Author Message
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 04-10-2013 , 03:56   CommandItems (1.0.1)
Reply With Quote #1

CommandItems

Simple but powerful Store module that allows you to add items that can run various server commands.

Use the web panel to add command items. Open the web panel, navigate to Add New Item under the Items menu. In type, type commanditem. Change name, display_name, description and attrs to customize the new item.

Example of an attrs value for giving the TF2 weapon "The Buff Banner" using FlaminSarge's plugin:

Code:
{
    "command": "sm_giveweapon \"{clientName}\" 129",
    "teams": [2, 3]
}
Available parameters for the command property:
  • {clientName}
  • {clientTeam}
  • {clientAuth}
  • {clientUser}
Attached Files
File Type: smx store-commanditems.smx (11.1 KB, 2104 views)
File Type: sp Get Plugin or Get Source (store-commanditems.sp - 1497 views - 3.6 KB)
__________________

Last edited by alongub; 04-11-2013 at 14:24.
alongub is offline