AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with variable (https://forums.alliedmods.net/showthread.php?t=134872)

CrazyChickenTest 08-09-2010 15:02

Help with variable
 
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?

Mxnn 08-09-2010 15:20

Re: Help with variable
 
I think this is slowhacking.

PD: "cl_crosshair_traslucent %i" must be %s (is a string, not a integrer)

CrazyChickenTest 08-09-2010 16:13

Re: Help with variable
 
No I try to do Killstreak in call of duty. It's emp and in one round it's off crosshair

fysiks 08-09-2010 21:12

Re: Help with variable
 
I don't think those are considered "info". They are cvars. IIRC

Mxnn 08-09-2010 23:56

Re: Help with variable
 
You can try print their content in the chat.

CrazyChickenTest 08-10-2010 02:48

Re: Help with variable
 
I don't want to print it:wink: But I try to recover color crosshair before EMP, but I can recover only one color of crosshair for everyone.


All times are GMT -4. The time now is 22:01.

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