Raised This Month: $63 Target: $400
 15% 

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 , 04: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, 1834 views)
File Type: sp Get Plugin or Get Source (store-commanditems.sp - 1250 views - 3.6 KB)
__________________

Last edited by alongub; 04-11-2013 at 15:24.
alongub is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 04-10-2013 , 08: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 , 13: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 , 13: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 14:07.
winterghost is offline
applemes
Senior Member
Join Date: Mar 2013
Old 04-10-2013 , 17: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 , 17: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 18:45.
Arrow768 is offline
applemes
Senior Member
Join Date: Mar 2013
Old 04-10-2013 , 18: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 , 19: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 , 20: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 , 20: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 20:09.


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