Help Draw image on screen

Joined
Jun 6, 2018
Messages
16
Likes
0
Points
1
#1
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
[email protected] = 0
alloc [email protected] 260 

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

:hitler
samp.IsCommandTyped([email protected])
wait 0
[email protected] = 1
samp.CmdRet()
 

_=Gigant=_

Well-Known Member
Joined
Mar 21, 2017
Messages
371
Likes
3
Points
18
#2
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 [email protected] = load_texture_from_file "CLEO\hitler.jpg"
wait 0
end

0B34: samp register_client_command "hitler" to_label @hitler

while true
wait 0

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

END


:hitler
wait 0
0B12: [email protected] = [email protected] XOR 1
if [email protected] == 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
 
Top