How can i ?
#1

how can i add in my forum
"Play Button" for my server ?
when you press it it auto connect to server ?!?
Reply
#2

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
Reply
#3

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.
Reply
#4

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" :/
Reply
#5

thanks .. but there is a problem i used

<a href="samp://iport"><button class="btn">Play Glory DeathMatch</button></a>
when i press it it wont run
Reply
#6

Quote:
Originally Posted by Toxik
Посмотреть сообщение
thanks .. but there is a problem i used

<a href="samp://iport"><button class="btn">Play Glory DeathMatch</button></a>
when i press it it wont run
Because you didn't put the right iport, you've just used "samp://iport"; 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?
Reply
#7

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.
Reply
#8

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
Reply
#9

check here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)