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}