CLEO Help Draw image on screen

CLEO related
Status
Not open for further replies.

hahahafuccoff

Member
Joined
Jun 6, 2018
Messages
16
Reaction score
0
Hello, i am trying to draw a picture with hitler on the screen if command is typped but it doesn't work, it just download on cleo_saves folder but it doesn't show, can you see what i'm doing wrong ? I will apreciate. The annoying hitler don't want to show


Code:
{$CLEO .cs}
0000:

repeat 
wait 0
until Samp.Available()

0B00: delete_file "cleo/cleo_saves/hitler.png"
0B34: samp register_client_command "hitler" to_label @hitler
0@ = 0
alloc 5@ 260 

while true
wait 0
if 0@ == 1
then
chatmsg "{FFFF00}Wait, Hitler is coming" -1
wait 1000
SAMP.GetScreenResolution(1@, 2@)
1@ -= 420 
2@ -= 250 
3@ = 160 
4@ = 200 
005A: 3@ += 2@  
005A: 4@ += 2@  
format 5@ "http:%c%ci.imgur.com/e9iPpxf.jpg" 47 47
0C65: 21@ = download_url 5@ to_file "cleo/cleo_saves/hitler.png" 
6@ = -1
0C66: 6@ = get_download 7@ state 
0C7D: release_download 7@ 
0B71: render 8@ = load_texture_from_file "cleo/cleo_saves/hitler.png" 
0B73: render draw_texture 8@ pos 1@ 2@ size 410 160 rotation 0 color -1
wait 5000
0B00: delete_file "cleo/cleo_saves/hitler.png"
chatmsg "{ff0000}Hitler left" -1
0@ = 0
end
end

:hitler
samp.IsCommandTyped(20@)
wait 0
0@ = 1
samp.CmdRet()
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
hahahafuccoff said:
Hello, i am trying to draw a picture with hitler on the screen if command is typped but it doesn't work, it just download on cleo_saves folder but it doesn't show, can you see what i'm doing wrong ? I will apreciate. The annoying hitler don't want to show

Code:
{$CLEO}
0000:

repeat
wait 40
until 0AFA:

while 8B71: render 0@ = load_texture_from_file "CLEO\hitler.jpg"
wait 0
end

0B34: samp register_client_command "hitler" to_label @hitler

while true
wait 0

if 1@ == true
then
    03F0: 1
    0B73: render draw_texture 0@ pos 400 400 size 300 300 rotation 0.0 color 0xFFFFFFFF
end

END


:hitler
wait 0
0B12: 1@ = 1@ XOR 1
if 1@ == true
then
chatmsg "{ff0f0f}Hitler is BACK!" -1
else
chatmsg "Hitler is gone :(" -1
end
cmdret

here you can see how it looks :3    https://s15.postimg.cc/91rmevu4r/sa-mp-206.png
 
Status
Not open for further replies.
Top