Raised This Month: $32 Target: $400
 8% 

Release CommandItems (1.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
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, 2098 views)
File Type: sp Get Plugin or Get Source (store-commanditems.sp - 1491 views - 3.6 KB)
__________________

Last edited by alongub; 04-11-2013 at 14:24.
alongub is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 04-10-2013 , 07:34   Re: CommandItems (1.0.0)
Reply With Quote #2

Nice thanks
__________________
mickael002 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 04-10-2013 , 12:30   Re: CommandItems (1.0.0)
Reply With Quote #3

You should probably add support for {clientUser} and automatically prefix it with the # character, since name targeting isn't recommended.
__________________
thetwistedpanda is offline
winterghost
Member
Join Date: Dec 2012
Old 04-10-2013 , 12:58   Re: CommandItems (1.0.0)
Reply With Quote #4

awesome. could you also add a parameter for client's steamID so it can be used with Sourcebans 1.5's add admin command?
__________________

Last edited by winterghost; 04-10-2013 at 13:07.
winterghost is offline
applemes
Senior Member
Join Date: Mar 2013
Old 04-10-2013 , 16:24   Re: CommandItems (1.0.0)
Reply With Quote #5

So i can add jetpack now? the +jetpack command? http://forums.alliedmods.net/showthread.php?t=56374
applemes is offline
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 04-10-2013 , 16:47   Re: CommandItems (1.0.0)
Reply With Quote #6

no

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

Last edited by Arrow768; 04-10-2013 at 17:45.
Arrow768 is offline
applemes
Senior Member
Join Date: Mar 2013
Old 04-10-2013 , 17:39   Re: CommandItems (1.0.0)
Reply With Quote #7

Can you give me an example of what a good one would be in css?
applemes is offline
winterghost
Member
Join Date: Dec 2012
Old 04-10-2013 , 18:40   Re: CommandItems (1.0.0)
Reply With Quote #8

Quote:
Originally Posted by applemes View Post
Can you give me an example of what a good one would be in css?
give weapon_m249
__________________
winterghost is offline
applemes
Senior Member
Join Date: Mar 2013
Old 04-10-2013 , 19:10   Re: CommandItems (1.0.0)
Reply With Quote #9

Ohhh so like people can buy guns?
applemes is offline
exactprecisions
Member
Join Date: Apr 2013
Old 04-10-2013 , 19:56   Re: CommandItems (1.0.0)
Reply With Quote #10

Quote:
Originally Posted by applemes View Post
Ohhh so like people can buy guns?
I was actually about the ask the same question as it would seem this was so.
exactprecisions is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:53.


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