Make a message stay on the screen

Status
Not open for further replies.
Joined
Dec 13, 2014
Messages
5
Likes
0
Points
1
1
#1
Hey, I'm not really scripting cleos but I take codes from certain cleos and paste it into other cleos and change them.
Does anyone know if it's possible to make a code that once I turn on a certain cleo it will show a message on the top right of the screen that will say that it's on?
I don't mean a message that will show up for a split second and disappear, I'm talking about a message that will remain on the screen as long as the CLEO was activated (there's an option to activate and deactivate the cleo, now I want to make a code that once it's activated a message will show up on the top right of the screen saying "XXX IS ON" in green text and when it's off it'll say "XXX IS OFF".

Thanks in advance, reply if you didn't entirely understand what I'm asking here and I'll explain.
 

supahdupahnubah

Well-Known Member
Joined
Dec 31, 2015
Messages
679
Likes
3
Points
33
#4
Salvadoron said:
supahdupahnubah said:
Yes, it is possible
Lol, do you perhaps know how to do it? haha
Yea, I know  :iknowwhatyoudidthere:
But you didn't ask for code, you did ask for posibility of it, right?

03F0: enable_text_draw 1
03E4: set_text_draw_align_right 1
033F: set_text_draw_letter_size 0.3 0.9
0340: set_text_draw_RGBA 255 255 255 255
081C: draw_text_outline 1 RGBA 0 0 0 200
045A: draw_text_1number 585.0 66.5 GXT 'NUMBER' number [email protected]
^ copied from health on the screen script, if you look up for other draw_text opcodes you can find what's more suitable for you
 

Codex1337

Well-Known Member
Joined
Mar 1, 2014
Messages
170
Likes
0
Points
16
10
#5
Another way to do it :

Put this at the beginning of your script (not in loop)

Code:
0B6D: [email protected] CREATE_FONT "Arial Black" HEIGHT 10 FLAGS 0x5
0BFC: set_global_var "font" = [email protected]
Then, put this in your main script loop :


Code:
call @DrawText 3 x y z color // Replace with your vars

Put this code at the end of the script, make sure it doesn't coincide with any loop.


Code:
:DrawText   
0BFD: [email protected] = get_global_var "font"
0B6B: [email protected] = FONT [email protected] TEXT "Cheat is running" LENGTH
[email protected] /= 2
0062: [email protected] -= [email protected]
0B6F: FONT [email protected] DRAW_TEXT "Cheat is running" POS [email protected] [email protected] COLOR [email protected]
ret 0
 
OP
OP
S
Joined
Dec 13, 2014
Messages
5
Likes
0
Points
1
1
#6
I don't really know how to script, can you explain me it in a language that I'll understand? lol
 

supahdupahnubah

Well-Known Member
Joined
Dec 31, 2015
Messages
679
Likes
3
Points
33
#7
Salvadoron said:
I don't really know how to script, can you explain me it in a language that I'll understand? lol
There's no language for you that will help you with getting what this guy just wrote
 
Status
Not open for further replies.
Top