ejexter
Well-known member
- Joined
- Feb 21, 2014
- Messages
- 211
- Reaction score
- 0
This is possible to attach picture to samp screen?? :imoverit:
(Like This: http://i62.tinypic.com/24f0ne0.jpg)
(Like This: http://i62.tinypic.com/24f0ne0.jpg)
Thanks :urtheman:Opcode.eXe link said:There are many ways to do it...
CLEO:
0B73: render draw_texture 1@ pos 2@ 3@ size 4@ 5@ rotation 6@ color 7@
or without sampfuncs:
074B: draw_texture 20 position 428@ 429@ scale 430@ 431@ angle $TEMPVAR_ANGLE color_RGBA 220 220 220 404@
You can explaint better how to attach a custom image to screen plz, put example plzOpcode.eXe link said:There are many ways to do it...
CLEO:
0B73: render draw_texture 1@ pos 2@ 3@ size 4@ 5@ rotation 6@ color 7@
or without sampfuncs:
074B: draw_texture 20 position 428@ 429@ scale 430@ 431@ angle $TEMPVAR_ANGLE color_RGBA 220 220 220 404@
{$CLEO}
0000:
repeat
wait 40
until 0AFA:
while 8B71: render 0@ = load_texture_from_file "CLEO\test.png"
wait 0
end
while true
wait 0
03F0: 1
0B73: render draw_texture 0@ pos 400 400 size 50 50 rotation 0.0 color 0xFFFFFFFF
end
Thanks :urtheman:springfield link said:Add a 'test.png' image to your CLEO folder.
Code:{$CLEO} 0000: repeat wait 40 until 0AFA: while 8B71: render 0@ = load_texture_from_file "CLEO\test.png" wait 0 end while true wait 0 03F0: 1 0B73: render draw_texture 0@ pos 400 400 size 50 50 rotation 0.0 color 0xFFFFFFFF end
{$CLEO}
0662: "TH3RM4L"
03F0: enable_text_draw 1
1@ = 1.0
2@ = 1.0
3@ = 1.0
4@ = 1.0
:MAIN
wait 0
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED200' 5@
0AA5: call 0x718600 2 pop 2 5@ "+"
0340: set_text_draw_RGBA 255 255 255 255
033F: set_text_draw_letter_size 3@ 4@
081C: draw_text_outline 1 RGBA 0 0 0 255
033E: set_draw_text_position 1@ 2@ GXT 'CRED200'
printf "X: ~G~%0.1f ~W~Y: ~B~%0.1f~N~~W~S1: ~Y~%0.1f ~W~S2: ~R~%0.1f" 5000 1@ 2@ 3@ 4@
:SMALLER2
if
0AB0: 97
jf @UP
000F: 4@ -= 0.2
goto @MAIN
:UP
if
0AB0: 98
jf @SMALLER1
000B: 2@ += 1.0
goto @MAIN
:SMALLER1
if
0AB0: 99
jf @LEFT
000F: 3@ -= 0.2
goto @MAIN
:LEFT
if
0AB0: 100
jf @RIGHT
000F: 1@ -= 1.0
goto @MAIN
:RIGHT
if
0AB0: 102
jf @BIGGER2
000B: 1@ += 1.0
goto @MAIN
:BIGGER2
if
0AB0: 103
jf [member=5997]Down[/member]
000B: 4@ += 0.2
goto @MAIN
:DOWN
if
0AB0: 104
jf @BIGGER1
000F: 2@ -= 1.0
goto @MAIN
:BIGGER1
if
0AB0: 105
jf @MAIN
000B: 3@ += 0.2
goto @MAIN
Thanks i will use this :not_bad:TH3RM4L link said:numpad;Code:{$CLEO} 0662: "TH3RM4L" 03F0: enable_text_draw 1 1@ = 1.0 2@ = 1.0 3@ = 1.0 4@ = 1.0 :MAIN wait 0 0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED200' 5@ 0AA5: call 0x718600 2 pop 2 5@ "+" 0340: set_text_draw_RGBA 255 255 255 255 033F: set_text_draw_letter_size 3@ 4@ 081C: draw_text_outline 1 RGBA 0 0 0 255 033E: set_draw_text_position 1@ 2@ GXT 'CRED200' printf "X: ~G~%0.1f ~W~Y: ~B~%0.1f~N~~W~S1: ~Y~%0.1f ~W~S2: ~R~%0.1f" 5000 1@ 2@ 3@ 4@ :SMALLER2 if 0AB0: 97 jf @UP 000F: 4@ -= 0.2 goto @MAIN :UP if 0AB0: 98 jf @SMALLER1 000B: 2@ += 1.0 goto @MAIN :SMALLER1 if 0AB0: 99 jf @LEFT 000F: 3@ -= 0.2 goto @MAIN :LEFT if 0AB0: 100 jf @RIGHT 000F: 1@ -= 1.0 goto @MAIN :RIGHT if 0AB0: 102 jf @BIGGER2 000B: 1@ += 1.0 goto @MAIN :BIGGER2 if 0AB0: 103 jf [member=5997]Down[/member] 000B: 4@ += 0.2 goto @MAIN :DOWN if 0AB0: 104 jf @BIGGER1 000F: 2@ -= 1.0 goto @MAIN :BIGGER1 if 0AB0: 105 jf @MAIN 000B: 3@ += 0.2 goto @MAIN
2 = down
6 = right
4 = left
8 = up
1, 3, 7 and 9 are for the text's size.
I can load picture from site?? :forever_hurra:springfield link said:Add a 'test.png' image to your CLEO folder.
Code:{$CLEO} 0000: repeat wait 40 until 0AFA: while 8B71: render 0@ = load_texture_from_file "CLEO\test.png" wait 0 end while true wait 0 03F0: 1 0B73: render draw_texture 0@ pos 400 400 size 50 50 rotation 0.0 color 0xFFFFFFFF end