| Author |
Message |
gtamike_TSGK
TSGK Member

Joined: 20 Aug 2006 Posts: 2994 Location: Mapper since 2007 YouTube: gtamikesvideos Country:  Browser:  Age: 36
|
Posted: Sat Jul 24, 2010 19:43 Post subject:
Multiple binds to one key Subject description: e.g. chat message and name change with 1 key |
|
Multiple binds to one key
Today I wanted to display a chat message ingame and have my name changed at same time.
So I setup 2 binds for each of the commands but the spam chat message blocked it on server.
Here's a work around I just found
Add this line to your "autoexec.cfg" in the "cfg folder" (If you don't have a autoexec.cfg file you need to make one or download my e.g file)
| Code: | | bind "f" "exec autoexec2" |
Note change the "f" to any key you wish.
Now make another .cfg file in the "cfg folder" called autoexec2.cfg
Open it with a text editing tool like notepad.
Then add this code in
| Code: | say Hello
name my_ingame_name_here |
I've added the 2 .cfgs in attachment if you just want to edit them or test.
You can change the 2 commands to anything you want E.G. Network settings.
I've only tested with 2 commands in the autoexec2.cfg, but should work fine if you want more than 2 commands.
Enjoy
| Description |
Multiple binds to one key |
| Filesize |
89.81 KB |
| Viewed |
37993 Time(s) |

|
| Description |
|

Download |
| Filename |
cfg.zip |
| Filesize |
302 Bytes |
| Downloaded |
4122 Time(s) |
_________________ http://gamebanana.com/members/215600
https://www.youtube.com/c/gtamikesvideos
Public OneDrive (My Maps/Download)
https://onedrive.live.com/?id=3BA901DF57014CE8%21110&cid=3BA901DF57014CE8
Last edited by gtamike_TSGK on Thu Jul 29, 2010 18:21; edited 1 time in total
|
|
Back to top
|
|
 |
Ade

Joined: 28 Jul 2009 Posts: 78 Location: Iasi, Romania Country:  Browser:  Age: 41
|
Posted: Sun Jul 25, 2010 19:43 Post subject:
|
|
uhm.. google "hl2dm alias bind"
_________________

|
|
Back to top
|
|
 |
gtamike_TSGK
TSGK Member

Joined: 20 Aug 2006 Posts: 2994 Location: Mapper since 2007 YouTube: gtamikesvideos Country:  Browser:  Age: 36
|
Posted: Sun Jul 25, 2010 19:53 Post subject:
|
|
| Ade wrote: | | uhm.. google "hl2dm alias bind" |
Not been posted here before and will be useful for others.
Last edited by gtamike_TSGK on Mon Jul 26, 2010 16:28; edited 1 time in total
|
|
Back to top
|
|
 |
Ade

Joined: 28 Jul 2009 Posts: 78 Location: Iasi, Romania Country:  Browser:  Age: 41
|
Posted: Mon Jul 26, 2010 14:54 Post subject:
|
|
didn't get what ur sayin
I just wanted to say alias is better than making tons of files, especially if the script or w/e is only 2 lines long, u can easily put it in the normal cfg file
_________________

|
|
Back to top
|
|
 |
|