Raised This Month: $51 Target: $400
 12% 

Help <cs 1.6> bind "cl_crosshair_color : not simple ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nss
Junior Member
Join Date: Feb 2011
Old 11-28-2012 , 13:19   Help <cs 1.6> bind "cl_crosshair_color : not simple ?
Reply With Quote #1

Does anybody know how to bind a key to the command that set cl_crosshair_color "255 255 255" ?
this command work when you type in console and when using "messagemode" ,
but it does NOT working when binding
i think because this command require having the double quotes (") with the value

while the syntax is
bind key "command"
or
bind "key" "command"

so set it to

bind F5 "cl_crosshair_color "255 255 255""
or
bind F5 "cl_crosshair_color 255 255 255"

does not work ,i try to put " character at every places but it not working
It looks like simple but i think it does not

I want to put binding command to a .cfg file ,so
is there any solution to bind this command to a key ?
is it possible by using amxx plugin ? ( then the user can bind specific value to an key and write to .cfg file)


please help !
Thanks

Last edited by nss; 11-28-2012 at 14:18.
nss is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 11-28-2012 , 14:19   Re: Help <cs 1.6> bind "cl_crosshair_color : not simple ?
Reply With Quote #2

Im not sure but test bind "p" cl_crosshair_color "255 255 255"
or "p" cl_crosshair_color '255 255 255'"
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-28-2012 , 14:49   Re: Help <cs 1.6> bind "cl_crosshair_color : not simple ?
Reply With Quote #3

bind p "cl_crosshair_color ^"255 255 255^""

Might work, not sure though.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 11-28-2012 , 15:55   Re: Help <cs 1.6> bind "cl_crosshair_color : not simple ?
Reply With Quote #4

Quote:
Originally Posted by jonnzus View Post
Im not sure but test bind "p" cl_crosshair_color "255 255 255"
or "p" cl_crosshair_color '255 255 255'"
Quote:
Originally Posted by Jelle View Post
bind p "cl_crosshair_color ^"255 255 255^""

Might work, not sure though.
Won't work (tested it before), as I know, there is no possible way. but since hlsdk is C++, you can try this
bind "b" "cl_crosshair_color \"255 255 255\""
Not even sure thoughl
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-28-2012 , 16:13   Re: Help <cs 1.6> bind "cl_crosshair_color : not simple ?
Reply With Quote #5

cstrike\xhairs\white.cfg :

cl_crosshair "255 255 255"


->
bind "p" "exec xhairs/white.cfg"
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 11-28-2012 , 21:01   Re: Help <cs 1.6> bind "cl_crosshair_color : not simple ?
Reply With Quote #6

lol why didn't we think of what Conner came up with
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
nss
Junior Member
Join Date: Feb 2011
Old 11-28-2012 , 21:37   Re: Help <cs 1.6> bind "cl_crosshair_color : not simple ?
Reply With Quote #7

thanks Connor ,it works ^^
thank you all ,too !!!
nss is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode