Connect samp server to website - 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: Connect samp server to website (
/showthread.php?tid=382785)
Connect samp server to website -
Diovis - 05.10.2012
Hello guys,
I need a brief tutorial on how to connect a samp server to a website / forum
So when the player joins the game it says "Please go to www.whatever.com and register there
And then they can play with the forum username
Re: Connect samp server to website -
Passout - 05.10.2012
It has to do alot with mysql
You need to know mysql first before you can ever consider doing what you are asking,and what you are asking takes way more than a brief tutorial...
This isn't something that you can get done in one day...
Re: Connect samp server to website -
Passout - 05.10.2012
Quote:
Originally Posted by Lordz™
It uses mysql system.
For message while connecting, you can use this
pawn Code:
public OnPlayerConnect(playerid) { SendClientMessage(playerid, 0xFF0000FF, "Please go to whatever.com and register there." return 1; }
|
Its way more than that dude are you serious? Stop spamming...
Its more like(of course not functional)
pawn Code:
public OnPlayerConnect(playerid)
{
if(/*PLAYER IS REGISTERED ON WEBSITE*/) // THIS HAS TO BE ON TOP! BEFORE ANYTHING ELSE
{
//All the account loading info here
}
else//Player is not registered on website
{
SendClientMessage(playerid, 0xFF0000FF, "Please go to whatever.com and register there.");
return 1;
}
///////////////////////////////////AFTER THIS CONTINUE WITH THE REST OF ONPLAYERCONNECT//////////////////////
return 1;
}