SA-MP Forums Archive
javascript samp:// - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: javascript samp:// (/showthread.php?tid=169989)



javascript samp:// - [Ger]Little_Grandpa - 21.08.2010

(how) is it possible to check if the samp:// protocol is installed, wanna know if the player got samp 0.3b or not...
using javascript, php etc.... ?


Re: javascript samp:// - ScottCFR - 21.08.2010

I don't think you can. Just, check if theres a response with samp:// if not then no.


Re: javascript samp:// - Mike Garber - 21.08.2010

If you make a link like "Connect now", and then redirect them to a page saying "If SA:MP deosn't start automatically you must download and install SA:MP 0.3b"


Re: javascript samp:// - ScottCFR - 21.08.2010

I don't know about that. Just because you can't control what happens when someone uses that url base. If there was a way to control it, then yes you could.


Re: javascript samp:// - Slice - 21.08.2010

To call it from javascript:

Code:
location.replace( "samp://127.0.0.1:7777" );
or
Code:
location.href = "samp://127.0.0.1:7777";
EDIT: oops not what you were looking for


Re: javascript samp:// - mooman - 21.08.2010

try detecting if they have that GTA weapons font


Re: javascript samp:// - Mike Garber - 21.08.2010

Quote:
Originally Posted by ScottCFR
View Post
I don't know about that. Just because you can't control what happens when someone uses that url base. If there was a way to control it, then yes you could.
You can do It, but the message would show either way.
You could show It as a foot-note, like "Thank you for playing on our server. (Note, if It doesn't connect automatically, please make sure you have 0.3b installed).

I mean, just make a link to another page saying that. Not that hard -_-