save help
#5

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


Messages In This Thread
save help - by varga - 09.06.2012, 17:04
Re: save help - by varga - 09.06.2012, 18:10
Re: save help - by Djole1337 - 09.06.2012, 18:12
Re: save help - by Faisal_khan - 09.06.2012, 18:15
Re: save help - by Grimrandomer - 09.06.2012, 18:18
Re: save help - by varga - 10.06.2012, 05:44
Re: save help - by JaKe Elite - 10.06.2012, 05:51
Re: save help - by varga - 10.06.2012, 06:01
Re: save help - by Faisal_khan - 10.06.2012, 06:12
Re: save help - by varga - 11.06.2012, 12:36

Forum Jump:


Users browsing this thread: 2 Guest(s)