Raised This Month: $ Target: $400
 0% 

Help with variable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazyChickenTest
Member
Join Date: Jul 2010
Location: World ;)
Old 08-09-2010 , 15:02   Help with variable
Reply With Quote #1

Hi
I write some code, but it doesn't work :C
Code:
                get_user_info(id, "cl_crosshair_color", color, 31) 
                get_user_info(id, "cl_crosshair_translucent", trans, 31) 
....
    client_cmd(id, "cl_crosshair_color ^"%s^"",color);
    client_cmd(id, "cl_crosshair_translucent %i",trans);
I turn off crosshair and I try to turn it on but it doesn't work. What I do wrong?
__________________
Respect ;)
CrazyChickenTest is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-09-2010 , 15:20   Re: Help with variable
Reply With Quote #2

I think this is slowhacking.

PD: "cl_crosshair_traslucent %i" must be %s (is a string, not a integrer)
Mxnn is offline
CrazyChickenTest
Member
Join Date: Jul 2010
Location: World ;)
Old 08-09-2010 , 16:13   Re: Help with variable
Reply With Quote #3

No I try to do Killstreak in call of duty. It's emp and in one round it's off crosshair
__________________
Respect ;)
CrazyChickenTest is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-09-2010 , 21:12   Re: Help with variable
Reply With Quote #4

I don't think those are considered "info". They are cvars. IIRC
__________________
fysiks is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-09-2010 , 23:56   Re: Help with variable
Reply With Quote #5

You can try print their content in the chat.
Mxnn is offline
CrazyChickenTest
Member
Join Date: Jul 2010
Location: World ;)
Old 08-10-2010 , 02:48   Re: Help with variable
Reply With Quote #6

I don't want to print it But I try to recover color crosshair before EMP, but I can recover only one color of crosshair for everyone.
__________________
Respect ;)
CrazyChickenTest 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 22:01.


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