09.03.2011, 14:17
Hello guys.
I have a minor problem with my gamemode, where i made a login/register system.
It works almost perfect. Players are able to register and log in.
But the only problem is;
When a player connects to the server for first time, a dialog appears, and asks him to register.
If he closes the dialog, he will get kicked. But... The script still creates a user file for him, and just sets "Password=0".
I want it to only create the file if he registers.
Here is the script in pastebin: http://pastebin.com/LWUAjVsv
Its also attached below, if you want to download it in stead.
Its a small script, so it shouldnt take long time to read.
Hope someone would be very kind, and take a look at it. Thanks.
I have a minor problem with my gamemode, where i made a login/register system.
It works almost perfect. Players are able to register and log in.
But the only problem is;
When a player connects to the server for first time, a dialog appears, and asks him to register.
If he closes the dialog, he will get kicked. But... The script still creates a user file for him, and just sets "Password=0".
I want it to only create the file if he registers.
Here is the script in pastebin: http://pastebin.com/LWUAjVsv
Its also attached below, if you want to download it in stead.
Its a small script, so it shouldnt take long time to read.
Hope someone would be very kind, and take a look at it. Thanks.