Tefa
2019-09-16, 03:31 PM
السلام عليكم ورحمة الله وبركاته
الناس الي عايزه تراقب الجي ام الي مديه لناس وخايفه ليدي سي بي وانت مش موجود
الحركه ده كانه كاميرات مراقبه في كل حته هو ايروح ايضرب شفره من هنا اتتخزن من هنا :D
program.cs
سيرش
#region Exceptions & Logs
جواه ارمي
public static void AddGMCommando(string gm, string commandStr)
{
String folderN = DateTime.Now.Year + "-" + DateTime.Now.Month,
Path = "gmlogs\\RiderGMCommandsLog\\",
NewPath = System.IO.Path.Combine(Path, folderN);
if (!File.Exists(NewPath + folderN))
{
System.IO.Directory.CreateDirectory(System.IO.Path .Combine(Path, folderN));
}
if (!File.Exists(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
using (System.IO.FileStream fs = System.IO.File.Create(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
fs.Close();
}
}
using (System.IO.StreamWriter file = new System.IO.StreamWriter(NewPath + "\\" + DateTime.Now.Day + ".txt", true))
{
file.WriteLine(gm + commandStr);
}
}
سيرش
if (message.StartsWith("@"))
{
string message_ = message.Substring(1).ToLower();
string Mess = message.Substring(1);
string[] Data = message_.Split(' ');
فوق
switch (Data[0])
ضيف
Program.AddGMCommando(client.Entity.Name, " " + client.Account.State.ToString() + " @" + message_ + " " + DateTime.Now.ToString());
اعمل حركه دي مرتين
بعدها ابحث عن
if (message.StartsWith("/"))
تحت
string[] Data = message_.Split(' ')
حط كود ده
Program.AddGMCommando(client.Entity.Name, " " + client.Account.State.ToString() + " @" + message_ + " " + DateTime.Now.ToString());
خش bin/debug/gmlogs/RiderGMCommandsLog اتلقي فلدرات علي حسب اليوم ياعني مثلا اليوم 9/16 اتلقي ملف ده داخل الفلدر اتلقي txt ده شفرات اليوم الي عمله علشان الشفرات متتخلبطش في بعض
الناس الي عايزه تراقب الجي ام الي مديه لناس وخايفه ليدي سي بي وانت مش موجود
الحركه ده كانه كاميرات مراقبه في كل حته هو ايروح ايضرب شفره من هنا اتتخزن من هنا :D
program.cs
سيرش
#region Exceptions & Logs
جواه ارمي
public static void AddGMCommando(string gm, string commandStr)
{
String folderN = DateTime.Now.Year + "-" + DateTime.Now.Month,
Path = "gmlogs\\RiderGMCommandsLog\\",
NewPath = System.IO.Path.Combine(Path, folderN);
if (!File.Exists(NewPath + folderN))
{
System.IO.Directory.CreateDirectory(System.IO.Path .Combine(Path, folderN));
}
if (!File.Exists(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
using (System.IO.FileStream fs = System.IO.File.Create(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
fs.Close();
}
}
using (System.IO.StreamWriter file = new System.IO.StreamWriter(NewPath + "\\" + DateTime.Now.Day + ".txt", true))
{
file.WriteLine(gm + commandStr);
}
}
سيرش
if (message.StartsWith("@"))
{
string message_ = message.Substring(1).ToLower();
string Mess = message.Substring(1);
string[] Data = message_.Split(' ');
فوق
switch (Data[0])
ضيف
Program.AddGMCommando(client.Entity.Name, " " + client.Account.State.ToString() + " @" + message_ + " " + DateTime.Now.ToString());
اعمل حركه دي مرتين
بعدها ابحث عن
if (message.StartsWith("/"))
تحت
string[] Data = message_.Split(' ')
حط كود ده
Program.AddGMCommando(client.Entity.Name, " " + client.Account.State.ToString() + " @" + message_ + " " + DateTime.Now.ToString());
خش bin/debug/gmlogs/RiderGMCommandsLog اتلقي فلدرات علي حسب اليوم ياعني مثلا اليوم 9/16 اتلقي ملف ده داخل الفلدر اتلقي txt ده شفرات اليوم الي عمله علشان الشفرات متتخلبطش في بعض