AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Store (https://forums.alliedmods.net/forumdisplay.php?f=157)
-   -   Release CommandItems (1.0.1) (https://forums.alliedmods.net/showthread.php?t=213060)

alongub 04-10-2013 03:56

CommandItems (1.0.1)
 
2 Attachment(s)
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}

mickael002 04-10-2013 07:34

Re: CommandItems (1.0.0)
 
Nice :) thanks

thetwistedpanda 04-10-2013 12:30

Re: CommandItems (1.0.0)
 
You should probably add support for {clientUser} and automatically prefix it with the # character, since name targeting isn't recommended.

winterghost 04-10-2013 12:58

Re: CommandItems (1.0.0)
 
awesome. could you also add a parameter for client's steamID so it can be used with Sourcebans 1.5's add admin command?

applemes 04-10-2013 16:24

Re: CommandItems (1.0.0)
 
So i can add jetpack now? the +jetpack command? http://forums.alliedmods.net/showthread.php?t=56374

Arrow768 04-10-2013 16:47

Re: CommandItems (1.0.0)
 
no

Edit: This is not possible because the command you want to add is a client command and not a server command.

applemes 04-10-2013 17:39

Re: CommandItems (1.0.0)
 
Can you give me an example of what a good one would be in css?

winterghost 04-10-2013 18:40

Re: CommandItems (1.0.0)
 
Quote:

Originally Posted by applemes (Post 1930373)
Can you give me an example of what a good one would be in css?

give weapon_m249

applemes 04-10-2013 19:10

Re: CommandItems (1.0.0)
 
Ohhh so like people can buy guns?

exactprecisions 04-10-2013 19:56

Re: CommandItems (1.0.0)
 
Quote:

Originally Posted by applemes (Post 1930419)
Ohhh so like people can buy guns?

I was actually about the ask the same question as it would seem this was so.


All times are GMT -4. The time now is 03:02.

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