28.07.2013, 13:53
Hey everyone!
Currently I am using this saving and register system https://sampforum.blast.hk/showthread.php?tid=273088, just edited it a little bit and it works perfectly but there are some things that I really don't like. That is why I am thinking about re-making the whole register system to a better on - as I am a newbie scripter I need some assistance and scripting help so that's bascially why I create this thread. I really appreciate the help and I will of course give you guys reputation, et cetera. That is just for a thanks though
Alright to the point:
If it is your first time login you will automatically get a register dialog. After you have written in your password you will go to next step there it will ask for what gender your character will be (Male or Female), and then you will have to WRITE in your gender, one of these options and then you will go to next step which is Age. You will have to write in your age between 10 and 90 years, and after that you will be sent to next step where you will be asked for Origin (Where you was born ICly), and after that you will be sent to the spawn and registered to the server.
When you login you may just login and spawn at the spawn, so that is it.
Currently my system just asks for password, and you spawn at the spawn. Also added a non-rp name detector which kick you if you are not using roleplay name (Firstname_Lastname), but the register dialog shows up aswell before you get kicked, also it makes a userfile in the /Accounts/ saving with the username, and that's just messed up.
But I have no clue how I shall start it all when the players connect, because now I have the register and login on PlayerConnect, and incorrect password on OnDialogResponse. So it is all just a mess. How shall I make all the dialogs. I just know how to make a register dialog by the tutorial, not how to first write in password and then proceed to next step which is a new dialog, and then to the third dialog and then to the fourth dialog, and then to the spawn. How?
Currently I am using this saving and register system https://sampforum.blast.hk/showthread.php?tid=273088, just edited it a little bit and it works perfectly but there are some things that I really don't like. That is why I am thinking about re-making the whole register system to a better on - as I am a newbie scripter I need some assistance and scripting help so that's bascially why I create this thread. I really appreciate the help and I will of course give you guys reputation, et cetera. That is just for a thanks though
Alright to the point:
If it is your first time login you will automatically get a register dialog. After you have written in your password you will go to next step there it will ask for what gender your character will be (Male or Female), and then you will have to WRITE in your gender, one of these options and then you will go to next step which is Age. You will have to write in your age between 10 and 90 years, and after that you will be sent to next step where you will be asked for Origin (Where you was born ICly), and after that you will be sent to the spawn and registered to the server.
When you login you may just login and spawn at the spawn, so that is it.
Currently my system just asks for password, and you spawn at the spawn. Also added a non-rp name detector which kick you if you are not using roleplay name (Firstname_Lastname), but the register dialog shows up aswell before you get kicked, also it makes a userfile in the /Accounts/ saving with the username, and that's just messed up.
But I have no clue how I shall start it all when the players connect, because now I have the register and login on PlayerConnect, and incorrect password on OnDialogResponse. So it is all just a mess. How shall I make all the dialogs. I just know how to make a register dialog by the tutorial, not how to first write in password and then proceed to next step which is a new dialog, and then to the third dialog and then to the fourth dialog, and then to the spawn. How?