Raised This Month: $ Target: $400
 0% 

Binding two commands to one key?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
halfsquelch
Junior Member
Join Date: May 2008
Location: Earth
Old 04-13-2009 , 19:47   Binding two commands to one key?
Reply With Quote #1

I am looking for an easier way to bind two commands to one key. Right now you can do it like this

bind h "sm_mute #STEAM_0_#_#######; sm_slay #STEAM_0_#_#######"

but I am looking for a way to do it more like what mani has

bind h "sm_mute+sm_slay STEAM_0:#:#######"

The two problems that I am having with the sourcemod way of doing this are

1. you have to enter the steam ID two times.
2. you have to take all the colons out of the steam id and replace them with underscores. (Note: you can't just put the ID in quotes because binds will not allow you to have quotes inside of quotes)

If anyone knows of a way to do it like this or even a better way please let me know.

Thanks in advance for any input,
~ME~

Last edited by halfsquelch; 04-13-2009 at 19:49.
halfsquelch is offline
Send a message via MSN to halfsquelch
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 04-13-2009 , 20:10   Re: Binding two commands to one key?
Reply With Quote #2

Really has nothing to do with sourcemod....

Thats just binding stuff in games in general.....

If semicolon doesnt work, youll need to write an alias to do it.
retsam is offline
halfsquelch
Junior Member
Join Date: May 2008
Location: Earth
Old 04-13-2009 , 20:33   Re: Binding two commands to one key?
Reply With Quote #3

If this where just a binding thing then it would not be different between sourcemod and mani.

And unfortunalty I dount know how to set up and alias that would work like I need it to.

example (does not work)
alias slaymute "sm_slay <steamid>; sm_mute <steamid>"
bind h "slaymute STEAM_0:#:#######"
halfsquelch is offline
Send a message via MSN to halfsquelch
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 04-13-2009 , 21:38   Re: Binding two commands to one key?
Reply With Quote #4

Quote:
Originally Posted by halfsquelch View Post
If this where just a binding thing then it would not be different between sourcemod and mani.

And unfortunalty I dount know how to set up and alias that would work like I need it to.

example (does not work)
alias slaymute "sm_slay <steamid>; sm_mute <steamid>"
bind h "slaymute STEAM_0:#:#######"
AFAIK you can't do that.

My guess is you need a plugin of some sort. I heard of something called scripting that's done on the client side, but I've never used it, nor have I seen docs on how to use it.
__________________
recon0 is offline
halfsquelch
Junior Member
Join Date: May 2008
Location: Earth
Old 04-14-2009 , 00:45   Re: Binding two commands to one key?
Reply With Quote #5

I do allot of scripting and as far as I know this is not possible through scripting.
halfsquelch is offline
Send a message via MSN to halfsquelch
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 14:46.


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