+showres Toggle
Breakthrough
Texture Artist (ns_prometheus) Join Date: 2005-03-27 Member: 46620Members, Constellation
<div class="IPBDescription">Simple Script...</div> This is a simple script, for servers with the <b>/res plugin</b>. Instead of binding
a key to +showres and holding it, you can simply toggle it.
Thanks to <b>ReK</b> for the one that uses aliases.
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias showres1 "+showres; alias showresS showres2; alias refreshresS refreshres2"
alias showres2 "-showres; alias showresS showres1; alias refreshresS refreshres1"
alias refreshres1 ""
alias refreshres2 "-showres; wait; +showres"
alias showresS "showres1"
alias refreshresS "refreshres1"
bind "DEL" "showresS"
bind "INS" "refreshresS"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Bind a key to <u>showresS</u> to toggle showing the resource list, and bind
a key to <u>refreshresS</u> to update the list whenever you want.
The defaults are:
Delete - Resource List Toggle
Insert - Refresh Resource List
<b>Just add this code to your config.cfg!</b>
a key to +showres and holding it, you can simply toggle it.
Thanks to <b>ReK</b> for the one that uses aliases.
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias showres1 "+showres; alias showresS showres2; alias refreshresS refreshres2"
alias showres2 "-showres; alias showresS showres1; alias refreshresS refreshres1"
alias refreshres1 ""
alias refreshres2 "-showres; wait; +showres"
alias showresS "showres1"
alias refreshresS "refreshres1"
bind "DEL" "showresS"
bind "INS" "refreshresS"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Bind a key to <u>showresS</u> to toggle showing the resource list, and bind
a key to <u>refreshresS</u> to update the list whenever you want.
The defaults are:
Delete - Resource List Toggle
Insert - Refresh Resource List
<b>Just add this code to your config.cfg!</b>
Comments
<span style='color:orange'><span style='font-size:12pt;line-height:100%'>cough<i>cough</i>cough</span></span>
alias showres2 "-showres; alias showresS showres1; alias refreshresS refreshres1"
alias refreshres1 ""
alias refreshres2 "-showres; wait; +showres"
alias showresS "showres1"
alias refreshresS "refreshres1"
bind "DEL" "showresS"
bind "INS" "refreshresS"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Easier to change the binds now.
Good idea breakthrough.