Hello,
first of all, I don't realy know if you will help me on this forum with my problem, because it is not related to amx. So if it is not possible then excuse my fault please.
So, I will try to explain my problem.
In my client (game counter strike 1.6) config.cfg I would like to
bind on keys change of colors of crosshair. The problem is, the console (or something.. maybe the engine is made up this way) doesn't take more numeric parameters except one - the first one in a row. I tried an
alias feature, but it doesn't work at all.
First I tried this:
Code:
alias b1 "255 255 255"
alias cr1 "cl_crosshair_color b1"
bind K "cr1"
However, the
alias doesn't take numbers, so the
b1 is empty, or equal to zero, so my crosshair color was zero - black color
I also tried this:
Code:
alias cr1 "cl_crosshair_color "255 50 50""
bind K "cr1"
In this case, the game took only the first numeric parameter and the other two was thrown away, so the console got only
cl_crosshair_color 255 and because of missing other parameters, it was filled by zeroes, just like "255 0 0"
Also I am confused from the syntax - two symbols " and it worked a little anyway
Could anyone help me please?