Connect samp server to website
#1

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

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

Quote:
Originally Posted by Lordz™
View Post
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;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)