How can i ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: How can i ? (
/showthread.php?tid=585704)
How can i ? -
Toxik - 15.08.2015
how can i add in my forum
"Play Button" for my server ?
when you press it it auto connect to server ?!?
Re: How can i ? -
Crystallize - 15.08.2015
create a html script then a button in button add samp://yourip: port done
small example on how it should be done
PHP код:
<a href="samp://ipandport"><button class="btn">Play</button></a>
Re: How can i ? -
Potassium - 15.08.2015
If you mean on this forum then use this:
PHP код:
[url=samp://127.0.0.1:7777]CLICK ME TO PLAY![/url]
But obviously replace that IP with your own.
Re: How can i ? -
Crystallize - 15.08.2015
Quote:
Originally Posted by Potassium
If you mean on this forum then use this:
PHP код:
[url=samp://127.0.0.1:7777]CLICK ME TO PLAY![/url]
But obviously replace that IP with your own.
|
Don't wanna be a scumbag but he said "for my forum" :/
Re: How can i ? -
Toxik - 16.08.2015
thanks .. but there is a problem i used
<a href="samp://ip
ort"><button class="btn">Play Glory DeathMatch</button></a>
when i press it it wont run
Re: How can i ? -
Kapersky™ - 16.08.2015
Quote:
Originally Posted by Toxik
thanks .. but there is a problem i used
<a href="samp://ip ort"><button class="btn">Play Glory DeathMatch</button></a>
when i press it it wont run
|
Because you didn't put the right ip
ort, you've just used "samp://ip
ort"; instead use your own date (e.g <a href="samp://127.0.0.1:7777"> <----- Paste your IP here in this section "samp://"PASTE IT HERE"". Did you got what I mean?
Re: How can i ? -
Vince - 16.08.2015
I don't even think a <button> element is valid within an <a> element. You can easily style a link like a button, but not so much the other way around.
Re: How can i ? -
Crystallize - 16.08.2015
Quote:
Originally Posted by Vince
I don't even think a <button> element is valid within an <a> element. You can easily style a link like a button, but not so much the other way around.
|
It is worked fine for me , he just needs to design it i gave a small example on how should it work
Re: How can i ? -
Toxik - 16.08.2015
check
here