TSGK Clan Forum Forum Index TSGK Clan Forum
Half-Life 2 : Deathmatch TSGK Clan forum.
 
 CalendarCalendar   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

chameleon_789
September 24 1985 (32 year old)
 TSGK Member 
Diet H2O_TSGK
September 20 1971 (46 year old)
 TSGK Member 
Electric Warrior
September 26
gorman_freedon
September 25 1992 (25 year old)
Habitathxc
September 24 1986 (31 year old)
 TSGK Member 
SuperHebbe
September 21 1966 (51 year old)
[BK] Cyrus
September 21 1976 (41 year old)
°-NeÁtrinos-°
September 24 1990 (27 year old)
 TSGK Member 
Calendar
Calendar Calendar
Wed 20 Sep 2017 Thu 21 Sep 2017 Fri 22 Sep 2017 Sat 23 Sep 2017 Sun 24 Sep 2017 Mon 25 Sep 2017 Tue 26 Sep 2017
Birthday Diet H2O_TSGK  
Birthday SuperHebbe  
Birthday [BK] Cyrus  
 
 
Birthday chameleon_789  
Birthday Habitathxc  
Birthday °-NeÁtrinos-°  
Birthday gorman_freedon  
Birthday Electric Warrior  
The time now is Thu Sep 21, 2017 07:17
All times are UTC + 2 (DST in action)
 Forum index » TSGK General » Tips & Tricks
Multiple binds to one key
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
gtamike_TSGK
TSGK Member


Joined: 20 Aug 2006
Posts: 2951
Location: Mapper since 2007 YouTube: gtamikesvideos
Country:
Browser:
Age: 27

PostPosted: 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 Cool

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. Wink

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
change_name_test.jpg
 Description   Multiple binds to one key
 Filesize   89.81 KB
 Viewed   176 Time(s)

change_name_test.jpg

cfg.zip
Description 
zip

 Download 
Filename  cfg.zip 
Filesize  302 Bytes 
Downloaded  189 Time(s) 

_________________
http://gamebanana.com/members/215600
https://www.youtube.com/c/gtamikesvideos



Last edited by gtamike_TSGK on Thu Jul 29, 2010 18:21; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger 
Ade


Joined: 28 Jul 2009
Posts: 78
Location: Iasi, Romania
Country:
Browser:
Age: 32

PostPosted: Sun Jul 25, 2010 19:43    Post subject:  

uhm.. google "hl2dm alias bind"
_________________

Back to top
View user's profile Send private message 
gtamike_TSGK
TSGK Member


Joined: 20 Aug 2006
Posts: 2951
Location: Mapper since 2007 YouTube: gtamikesvideos
Country:
Browser:
Age: 27

PostPosted: 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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger 
Ade


Joined: 28 Jul 2009
Posts: 78
Location: Iasi, Romania
Country:
Browser:
Age: 32

PostPosted: Mon Jul 26, 2010 14:54    Post subject:  

didn't get what ur sayin Razz
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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » TSGK General » Tips & Tricks
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
You cannot post calendar events in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2347s ][ Queries: 17 (0.0098s) ][ Debug on ]