Splak.net
http://www.splak.net/forum/

Is there a way to---?
http://www.splak.net/forum/viewtopic.php?f=2&t=3097
Page 1 of 1

Author:  AWOL Soldier [ Wed Jan 07, 2009 6:28 pm ]
Post subject:  Is there a way to---?

Is there a way to write a line in console that could execute multiple commands?

I'm trying to figure out a way to make key binds that could do something like this for Left 4 Dead:

bind k +
sv_cheats 1
give_molotov
sv_cheats 0

Something like that, that could turn cheats on, do a cheat, then turn it off right after the cheat is complete. Can anyone help me with this?

Author:  im no superman [ Wed Jan 07, 2009 6:43 pm ]
Post subject: 

out of curiosity are cheats allowed on L4D??

Author:  $torm [ Wed Jan 07, 2009 6:53 pm ]
Post subject: 

As a script? probably, vman would know how.

Im guessing it would be like a .cfg file to exec.

so like,

Code:
sv_cheats 1
give_molotov
sv_cheats 0


then bind it like bind l exec blah.cfg

I wouldn't recommened trying it though, I may be seriously wrong! wait til vman comes along :wink:

Author:  AWOL Soldier [ Wed Jan 07, 2009 7:17 pm ]
Post subject: 

the sv_cheats are allowed, yes

The lobby leader can put sv_cheats on or off at will with no real consequences. Sometimes it's used just to help a party out, or to fix a bug. Like getting stuck on nothing...

Hacks are not allowed on any Vac-secured server though.

Author:  VMAN [ Wed Jan 07, 2009 7:33 pm ]
Post subject: 

Make a config file: molotov.cfg in your L4D folder w/ this in it:

Code:
sv_cheats 1
give_molotov
sv_cheats 0



Then open up console and type:

bind "k" "exec molotov.cfg"

Author:  $torm [ Wed Jan 07, 2009 8:04 pm ]
Post subject: 

Man, I knew I was right

Author:  ColeLT1 [ Wed Jan 07, 2009 10:03 pm ]
Post subject:  Re: Is there a way to---?

AWOL Soldier wrote:
Is there a way to write a line in console that could execute multiple commands?

I'm trying to figure out a way to make key binds that could do something like this for Left 4 Dead:

bind k +
sv_cheats 1
give_molotov
sv_cheats 0

Something like that, that could turn cheats on, do a cheat, then turn it off right after the cheat is complete. Can anyone help me with this?


You can separate commands with semi colons ; and put them all on 1 line

For example my F3 key is bound to "stopsound; amx_execall room_type 0"

Which stops the background sounds (like in blahhh) and also sets the room type to default to get rid of echos (for me and everyone in the server)

Author:  AWOL Soldier [ Thu Jan 08, 2009 12:55 am ]
Post subject: 

Thanks guys! :D

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/