Exile shared this great little script today in someone's stream. Would be really useful for grinding or looking for trick jumps in a map, since you can store up to 5 different teleports by default.
It rebinds your Alt and F1-F5 keys and you use it by, for example, pressing Alt+F1 to store your location, and then F1 by itself to teleport back there. Alt+F2 to store a second location, and so on.
//Settings
sv_cheats 1
con_timestamp 0
con_logfile console.log
//Binds
bind F1 gotoPosition1
bind F2 gotoPosition2
bind F3 gotoPosition3
bind F4 gotoPosition4
bind F5 gotoPosition5
bind ALT +savePosition
//Code
alias +savePosition "bind F1 savePosition1; bind F2 savePosition2; bind F3 savePosition3; bind F4 savePosition4; bind F5 savePosition5"
alias -savePosition "bind F1 gotoPosition1; bind F2 gotoPosition2; bind F3 gotoPosition3; bind F4 gotoPosition4; bind F5 gotoPosition5"
alias resetLogfile "con_logfile console.log"
alias savePosition1 "con_logfile cfg/position1; getpos; resetLogfile;"
alias savePosition2 "con_logfile cfg/position2; getpos; resetLogfile;"
alias savePosition3 "con_logfile cfg/position3; getpos; resetLogfile;"
alias savePosition4 "con_logfile cfg/position4; getpos; resetLogfile;"
alias savePosition5 "con_logfile cfg/position5; getpos; resetLogfile;"
alias gotoPosition1 "exec position1.log"
alias gotoPosition2 "exec position2.log"
alias gotoPosition3 "exec position3.log"
alias gotoPosition4 "exec position4.log"
alias gotoPosition5 "exec position5.log"