Raised This Month: $ Target: $400
 0% 

Release CommandItems (1.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
scorpadorp
SourceMod Donor
Join Date: May 2012
Location: NC
Old 04-24-2013 , 18:42   Re: CommandItems (1.0.1)
Reply With Quote #31

Quote:
Originally Posted by winterghost View Post
Can you not write multiple commands in one line, something like this:


"command": "sm_gravity @all 0.5; sm_hsay \"{clientName}\" turned down the Gravity!",
Right, but I want it to print to chat, not execute through an admin command. I'm sure it's a few lines of code edit but I'm not sure what to edit exactly.
scorpadorp is offline
winterghost
Member
Join Date: Dec 2012
Old 04-24-2013 , 19:47   Re: CommandItems (1.0.1)
Reply With Quote #32

Quote:
Originally Posted by scorpadorp View Post
Right, but I want it to print to chat, not execute through an admin command. I'm sure it's a few lines of code edit but I'm not sure what to edit exactly.
a simple google would turn up the bit you need to edit. swap sm_hsay to say.

"command": "sm_gravity @all 0.5; say \"{clientName}\" turned down the Gravity!",
__________________
winterghost is offline
scorpadorp
SourceMod Donor
Join Date: May 2012
Location: NC
Old 04-25-2013 , 00:45   Re: CommandItems (1.0.1)
Reply With Quote #33

Quote:
Originally Posted by winterghost View Post
a simple google would turn up the bit you need to edit. swap sm_hsay to say.

"command": "sm_gravity @all 0.5; say \"{clientName}\" turned down the Gravity!",
Replacing it with "say" makes the console appear in chat. I just want it to print the User's name in chat, and preferably in color.
{yellow}Scorp {default}turned down the gravity!
scorpadorp is offline
winterghost
Member
Join Date: Dec 2012
Old 04-25-2013 , 04:02   Re: CommandItems (1.0.1)
Reply With Quote #34

Quote:
Originally Posted by scorpadorp View Post
Replacing it with "say" makes the console appear in chat. I just want it to print the User's name in chat, and preferably in color.
{yellow}Scorp {default}turned down the gravity!
I believe that would require you to write a plugin yourself, for this doesn't do that. For no Console prefix to appear, I believe a plugin must use SM's chat hooks? And, for colors to appear, you would have to include something like morecolors and use it's hooks?

It's more than likely unfeasible with this plugin, because the commands would all have to have predetermined chat phrases.
__________________
winterghost is offline
rowedahelicon
Senior Member
Join Date: Feb 2011
Location: The Observatory
Old 04-25-2013 , 06:03   Re: CommandItems (1.0.1)
Reply With Quote #35

Sorry to ask again, but I'm still unable to get this to work in Tf2. After following the instructions, it simply says there are no items in this category while using it from my inventory.

I am able to purchase command items and my inventory database says I have them, but in game I go to !store -> Inventory -> Command items, and nothing. Just says nothing is there.

Any clue as to what I did wrong? :c
__________________
SCG, A furry community in the stars - https://www.scg.wtf
rowedahelicon is offline
Send a message via Skype™ to rowedahelicon
Logifl3x
Member
Join Date: Dec 2010
Old 04-25-2013 , 06:28   Re: CommandItems (1.0.1)
Reply With Quote #36

@rowedahelicon,

Are there any error messages in your console/log files when you try to equip/use them?
Logifl3x is offline
rowedahelicon
Senior Member
Join Date: Feb 2011
Location: The Observatory
Old 04-25-2013 , 15:42   Re: CommandItems (1.0.1)
Reply With Quote #37

Quote:
Originally Posted by Logifl3x View Post
@rowedahelicon,

Are there any error messages in your console/log files when you try to equip/use them?
Nothing other than the one everyone gets with the translation file or whatever. I have store logging enabled as well and nothing seems to show up.
__________________
SCG, A furry community in the stars - https://www.scg.wtf
rowedahelicon is offline
Send a message via Skype™ to rowedahelicon
Marverlous
Senior Member
Join Date: May 2013
Old 06-29-2013 , 13:32   Re: CommandItems (1.0.1)
Reply With Quote #38

How can i set a delay time that players must wait until they can use the item again?

Last edited by Marverlous; 06-29-2013 at 17:30.
Marverlous is offline
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 06-30-2013 , 16:04   Re: CommandItems (1.0.1)
Reply With Quote #39

You cant set a delay time with the current version of this plugin
If you want to have it wait until its implemented or code it by yourself
__________________
Arrow768 is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 07-01-2013 , 12:13   Re: CommandItems (1.0.1)
Reply With Quote #40

Yeah, I should probably implement cooldown on items.
__________________
alongub is offline
Reply



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 10:59.


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