Posts: 517
Threads: 112
Joined: Oct 2013
how can i add in my forum
"Play Button" for my server ?
when you press it it auto connect to server ?!?
Posts: 1,498
Threads: 110
Joined: Aug 2013
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>
Posts: 1,498
Threads: 110
Joined: Aug 2013
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" :/
Posts: 517
Threads: 112
Joined: Oct 2013
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
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 1,498
Threads: 110
Joined: Aug 2013
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
Posts: 517
Threads: 112
Joined: Oct 2013