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()