Echo on toggle function
Posted: Sun Jul 09, 2017 5:43 am
Hey, I'm looking for a way to put an echo message on a toggle, e.g., I want to bind a single key to toggle antiping and recieve a message "antiping on/off"
I can easily bind 2 keys for that:
Idk if there's a way to put both binds together on a key, like:
I thought it can be done using cfg files, but I don't know if I can call 2 differents cfg files with exec function bounds on a single key.
Any way to do this? Thanks.
I can easily bind 2 keys for that:
Code: Select all
bind key1 "cl_antiping 0; echo antiping off"
bind key2 "cl_antiping 1; echo antiping on"
Code: Select all
bind key "toggle cl_antiping 0 1; toggle echo "antiping on" "antiping off" "
Any way to do this? Thanks.