okay this is the account creation for the 5165 source by tanel, but how can i make it read an ip adress from an ini file, then it create the account to the ip, but at same path, cuz then it can be putted in client and players make account from there. I have seen it before, but i wondered how. cuz i suck at working with ips and ini.
I just need an ip check and a write to ip or something right?
i got no clue seriously :P
I just need an ip check and a write to ip or something right?
i got no clue seriously :P
Code:
public static void CreateAccount(string Name, string Password, string Status)
{
if (!File.Exists(@"C:\OldCODB\Users\" + Name + ".usr"))
{
FileStream FS = new FileStream(@"C:\OldCODB\Users\" + Name + ".usr", FileMode.CreateNew);
BinaryWriter BW = new BinaryWriter(FS);
AccCheck(Name, Password);
BW.Write(Password);
BW.Write(Status);
BW.Close();
FS.Close();
}
}