Joined: 20 Aug 2006 Posts: 2991 Location: Mapper since 2007 YouTube: gtamikesvideos Country: Browser: Age: 34
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.
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 _________________
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