09.06.2012, 18:18
You need a way of saving the players team.
To save a players team you will need a username/password system to save their stats/log them in to load their stats.
To main ways are Files or Database's
Best approch is a database.
When a player joins the server, check if the name is registered. if it is, promp them for a login password. if it isnt, promp them to pass them a password.
Then when they leave the server, if they where logged in, update their 'team' stat, and when they log in simply load their 'team' stat.
Have a look around the SA-MP forums for a good database login script/tuorial.
To save a players team you will need a username/password system to save their stats/log them in to load their stats.
To main ways are Files or Database's
Best approch is a database.
When a player joins the server, check if the name is registered. if it is, promp them for a login password. if it isnt, promp them to pass them a password.
Then when they leave the server, if they where logged in, update their 'team' stat, and when they log in simply load their 'team' stat.
Have a look around the SA-MP forums for a good database login script/tuorial.