trololo123
Member
- Joined
- Feb 26, 2014
- Messages
- 11
- Reaction score
- 0
Hi, with the help of monstercat.cs code "i made" a textdraw with activation/deactivation key...
I want to use this script for know when my mods are activated or not.
The problem is the deactivation way of the script, if i configure this script to make another textdraw (changing the desactivation key and the draw position) using 2 of this script at the same time, the desactivation key of 1 script remove both textdraws, that's what i dont want to, Example:
Key 1 pressed - Mod1 activate - Textdraw1 activate = Good
Key 2 pressed - Mod2 activate - Textdraw2 activate = Good
-
Key 2 pressed - Mod2 deactivate - Textdraw2 deactivate + Textdraw1 deactivate = Bad
Will be possible with this order "03F0: enable_text_draw 0" or another one who can disable the textdraw what i want, not all of them?
Thanks
I want to use this script for know when my mods are activated or not.
The problem is the deactivation way of the script, if i configure this script to make another textdraw (changing the desactivation key and the draw position) using 2 of this script at the same time, the desactivation key of 1 script remove both textdraws, that's what i dont want to, Example:
Key 1 pressed - Mod1 activate - Textdraw1 activate = Good
Key 2 pressed - Mod2 activate - Textdraw2 activate = Good
-
Key 2 pressed - Mod2 deactivate - Textdraw2 deactivate + Textdraw1 deactivate = Bad
Will be possible with this order "03F0: enable_text_draw 0" or another one who can disable the textdraw what i want, not all of them?
Thanks
Code:
{$CLEO .cs}
0000: NOP
:NONAME_2
wait 0
if
key_down 114
else_jump @NONAME_2
03E0: unknown_text_draw_flag 0
033F: set_text_draw_letter_size 0.17 0.77
081C: draw_text_outline 1 RGBA 0 0 0 255
0340: set_text_draw_RGBA 0 255 0 255
0AA8: call_function_method 6946896 struct 12694336 num_params 1 pop 0 'CRED000' 32@
0AA5: call 7439872 num_params 2 pop 2 32@ "my mod"
033E: set_draw_text_position 5.0 363.0 GXT 'CRED000'
wait 1000
jump @NONAME_3
:NONAME_3
wait 0
if
key_down 114
else_jump @NONAME_3
03F0: enable_text_draw 0
wait 1000
jump @NONAME_2