SA-MP Forums Archive
Can you open a broswer site using pawn code? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can you open a broswer site using pawn code? (/showthread.php?tid=654800)



Can you open a broswer site using pawn code? - SeanDenZYR - 06.06.2018

Well, what im trying to do is when player types in /rules, i show him a dialog for confirmation that our rules thread in our forum will be opened, but i can't find the code to open a website on the user's default browser, is it possible or it really doesn't exist?


Re: Can you open a broswer site using pawn code? - RODELA - 06.06.2018

doesn't exist.


Re: Can you open a broswer site using pawn code? - xMoBi - 06.06.2018

CEF doesn't exist in SA-MP.


Re: Can you open a broswer site using pawn code? - jasperschellekens - 06.06.2018

Not possible, what you can do instead is use sql to gather the rules from your database and display them in a dialog.


Re: Can you open a broswer site using pawn code? - Sew_Sumi - 07.06.2018

Quote:
Originally Posted by xMoBi
Посмотреть сообщение
CEF doesn't exist in SA-MP.
Read the question, he didn't want to open it in the game client, in the users actual browser.



Maybe this should be something to suggest... A text box could be shown, and it could have the text already in it so they can bring up the website by simply copying and pasting manually.


Re: Can you open a broswer site using pawn code? - Sew_Sumi - 07.06.2018

I think the suggestion should be made to have the output of a server function put into the client for the user to copy out... Just so you have to manually do it, not have a script output links to something as a method to allow malware, or to exploit it in a sense they could execute shit on your PC...