Help Cleo open internet page

Joined
Jun 6, 2018
Messages
16
Likes
0
Points
1
1
#1
Hello (again :iknowwhatyoudidthere: )

I wanted to create a cleo mod that will open a page in a browser but i am dumb as always and i failed  :shy: 

Code:
{$CLEO}

0000: NOP

repeat
    wait 0
until 0AFA:  is_samp_available  

0B34: samp register_client_command "google" to_label @google

while true
wait 0
end

:google
SAMP.IsCommandTyped([email protected])
0A9A: [email protected] = openfile "google.html" mode "r"
samp.CmdRet()
In google.html i have this:


Code:
<html>
<head>
<meta http-equiv="refresh" content="0; URL=https://www.google.com/">
<meta name="keywords" content="automatic redirection">
</head>
</html>
I know that i am using wrong opcode [font=Monaco, Consolas, Courier, monospace]0A9A:[/font] but i really don't know another method to do that, that's why i created google.html
Any suggestions ?
 

monday

Well-Known Member
Joined
Jun 23, 2014
Messages
921
Likes
4
Points
68
#3
Top