Raised This Month: $12 Target: $400
 3% 

Release CommandItems (1.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 04-17-2013 , 08:28   Re: CommandItems (1.0.1)
Reply With Quote #21

It has far more uses than your limited scope zloykif, and you're not being forced to use it. Primarily, it can be used for sm_* commands from other plugins that already take into consideration an on/off state, changing server variables akin to purchasing a 'low gravity' round or the likes, triggering cvar changes for other plugins activating certain gamemodes, etc. Your case is very limited, you're better off writing a module specific to your needs or requesting it be done. And as for your give example, if one wanted to use giving out equipment to players, it would be trivial to write a sm_give that only gives players 1 or 2 weapons a round, or even 1 prim / 1 sec / x grenades, then blocks them until next round.
__________________

Last edited by thetwistedpanda; 04-17-2013 at 08:30.
thetwistedpanda is offline
zloykif
Member
Join Date: May 2010
Old 04-17-2013 , 09:30   Re: CommandItems (1.0.1)
Reply With Quote #22

you mean i should write limit system for every single shop item manually, right? instead using commands
i'm not a coder, and not only me

again for example, here a lot usable commands, i can't rewrite this, this would be stupid.
Code:
es wcs changeteam <userid> <team>
es wcs damage <userid> <attackerid> <damage>
es wcs drop <userid> <weapon/slot/tag> 
es wcs drug <userid> <[time]>
es wcs drunk <userid> <[time]> <[value]>
es wcs extinguish <userid>
es wcs explode <userid> <targetid> <magnitude> <radius>
es wcs fire <userid> <[time]>
es wcs getviewentity <userid> <var>
es wcs keyhint <userid> <text...> 
es wcs poison <userid> <attackerid> <amount> <time>
es wcs push <userid> <Xforce, Yforce, Zforce>
es wcs pushto <userid> <"x,y,z"> <force> 
es wcs removeweapon <userid> <weapon/slot/tag> 
es wcs spawn <userid> <[force]>

es wcs_ability <type> <userid> <count> <params>
es wcs_anti <type> <userid> <0/1>
   
es wcs_anti <ability> <userid> <0/1>
es wcs_anti <blind> <userid> <0/1>
es wcs_anti <burn> <userid> <0/1>
es wcs_anti <freeze> <userid> <0/1>

es wcs_color <userid> <red> <green> <blue> [<alpha>] [<weapon invis 0/1>]
es wcs_dalias <alias> <value1> <[value2]> <[value3]> ...
es wcs_debug <level> <text>...
es wcs_decimal <variable> <value>
es wcs_degeneration <userid> <target> <damage> <time> <radius>
es wcs_foreach player <variable> <identifier> <"command"> 
es wcs_foreach token <variable> <string> <separator> <"command">
es wcs_foreach weapon <variable> <identifier> <"command"> 
es wcs_getcolor <userid> <redvar> <greenvar> <bluevar> <alphavar>
es wcs_getinfo <userid> <variable> <info> <player/race/racename>
es wcs_getlanguage <var> <userid> <text>
es wcs_heal <userid> <duration> <health> <radius> <team target> <team targetn> <x> <y> <z> <warden round>
es wcs_mole_activate <userid>
es wcs_nearcoord <variable> <identifier> <x coord> <y coord> <z coord> <range> <"command to run">
es wcs_randplayer <variable> <identifier>
es wcs_raceinfo <var> <race> [<skill>] <key>
es wcs_regeneration <userid> <amount> <time> <maxhp> <maxheal> <radius> [<msg 1/0>]
es wcs_removefx <type> <userid>
   
es wcs_removefx <freeze> <userid>
es wcs_removefx <god> <userid>
es wcs_removefx <noclip> <userid>

es wcs_restrict <userid> <all/weapon/"weapon1,weapon2">
es wcs_setfx <type> <userid> <[time]> <[st msg]>
   
es wcs_setfx 1stclip <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx 2ndclip <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx antihead <userid> = <1/0> <[time]> <[st msg]>
es wcs_setfx armor <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx attackspeed <userid> = <value> <[time]> <[st msg]>
es wcs_setfx blind <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx burn <userid> = <value> <[time]> <[st msg]>
es wcs_setfx cash <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx climb <userid> = <value> <[time]> <[st msg]>
es wcs_setfx disguiser <userid> = <1 (Enemy team)/0 (Your team)>
es wcs_setfx evade <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx freeze <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx god <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx gravity <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx health <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx hp <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx invis <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx invisp <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx jetpack <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx lg <userid> <+-=> <value> <[time]> <[st msg]>
es wcs_setfx levitate <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx location <userid> = <x,y,z> <[time]> <[st msg]>
es wcs_setfx longjump <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx money <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx noblock <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx speed <userid> <op> <value> <[time]> <[st msg]>
es wcs_setfx ulti_immunity <userid> <op> <value> <[time]> <[st msg]>

es wcs_trap <userid> <duration> <damage> <radius> <team target> <team targetn> <x> <y> <z> <warden round>
es wcs_unrestrict <userid> <all/weapon/"weapon1,weapon2">
es wcs_warden <userid> <duration> <damage> <radius> <team target> <team targetn> <x> <y> <z> <warden round>
es wcs_xalias <alias> <["command"]>
es wcs_xcentertell <userid> <text> ...
es wcs_xtell <userid> <language key>
es wcs_xweapon <type> <userid> <value> <weapon>
   
es wcs_xweapon clip <userid> <value> <weapon>
es wcs_xweapon maxammo <userid> <value> <weapon>
es wcs_xweapon name <userid> <value> <weapon>
es wcs_xweapon prop <userid> <value> <weapon>
es wcs_xweapon slot <userid> <value> <weapon>
es wcs_xweapon tags <userid> <value> <weapon>
__________________

Last edited by zloykif; 04-17-2013 at 09:41.
zloykif is offline
zloykif
Member
Join Date: May 2010
Old 04-17-2013 , 11:44   Re: CommandItems (1.0.1)
Reply With Quote #23

also one more thing, if i add my own limits for shopitem, anyway players can buy this item so, they spend money for nothing
__________________
zloykif is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 04-17-2013 , 12:16   Re: CommandItems (1.0.1)
Reply With Quote #24

Quote:
Originally Posted by thetwistedpanda View Post
It has far more uses than your limited scope zloykif, and you're not being forced to use it. Primarily, it can be used for sm_* commands from other plugins that already take into consideration an on/off state, changing server variables akin to purchasing a 'low gravity' round or the likes, triggering cvar changes for other plugins activating certain gamemodes, etc. Your case is very limited, you're better off writing a module specific to your needs or requesting it be done. And as for your give example, if one wanted to use giving out equipment to players, it would be trivial to write a sm_give that only gives players 1 or 2 weapons a round, or even 1 prim / 1 sec / x grenades, then blocks them until next round.
That being said, I do think more filters should be added. Unfortunately I don't have time to implement them right now, and this module isn't my highest priority (I have much more things to implement in the store itself), so it might take a few weeks.
__________________

Last edited by alongub; 04-17-2013 at 12:17.
alongub is offline
exactprecisions
Member
Join Date: Apr 2013
Old 04-18-2013 , 20:34   Re: CommandItems (1.0.1)
Reply With Quote #25

Edit :

This works

{
"command": "sm_weapon \"{clientName}\" weapon_flashbang",
"teams": [2, 3]
}

with this

https://forums.alliedmods.net/showthread.php?t=195476

For CS:GO - I'm sorry for the trouble. Just in case someone else might be wondering what an example using this with weapons or etc.


My question is does the type have to be commanditem ? The reason I ask is because the filtering doesn't filter in the store webpanel by the categories, it seems to be using the type

Last edited by exactprecisions; 04-19-2013 at 01:16.
exactprecisions is offline
rowedahelicon
Senior Member
Join Date: Feb 2011
Location: The Observatory
Old 04-21-2013 , 15:59   Re: CommandItems (1.0.1)
Reply With Quote #26

I put everything in as per the example on the first comment, and it keeps saying there are no items in this category. What have I done wrong here?
__________________
SCG, A furry community in the stars - https://www.scg.wtf
rowedahelicon is offline
Send a message via Skype™ to rowedahelicon
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 04-22-2013 , 01:16   Re: CommandItems (1.0.1)
Reply With Quote #27

Quote:
Originally Posted by zloykif View Post
How that solve problem with purchase over 9000hp instead 100?
It was a question to alongub. -_-
__________________
retired
shavit is offline
zloykif
Member
Join Date: May 2010
Old 04-22-2013 , 12:09   Re: CommandItems (1.0.1)
Reply With Quote #28

Quote:
It was a question to alongub. -_-
y, I realized this after his answer ^^
__________________
zloykif is offline
scorpadorp
SourceMod Donor
Join Date: May 2012
Location: NC
Old 04-23-2013 , 18:02   Re: CommandItems (1.0.1)
Reply With Quote #29

Good stuff.

Can you add these 2 things?

1) Time limt on the tokens. If you change a server command like gravity but only want it activated for 30 seconds, add an option in the attrs to determine its length.

2) Show in chat which user activated the command, e.g. "{ClientName} turned down {yelllow}the gravity!"

Last edited by scorpadorp; 04-23-2013 at 18:02.
scorpadorp is offline
winterghost
Member
Join Date: Dec 2012
Old 04-24-2013 , 18:18   Re: CommandItems (1.0.1)
Reply With Quote #30

Quote:
Originally Posted by scorpadorp View Post
2) Show in chat which user activated the command, e.g. "{ClientName} turned down {yelllow}the gravity!"
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!",
__________________
winterghost 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 06:06.


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