Hello Elitepvpers, this is how you could make a report a player system for the 5165source.
First open Chat.cs and put this command for players:
Code:
if (Cmd[0] == "/report")
{
if (Cmd.Length == 3)
{
REPORTPLAYER(Cmd[1], Cmd[2]);
GC.LocalMessage(2000, "You have reported: " + Cmd[1] + " For: " + Cmd[2]);
}
else
{
GC.LocalMessage(2000, "use Charname + Reason");
GC.LocalMessage(2000, "Ex. /report Charname Aimbot");
GC.LocalMessage(2000, "YOU CANT MAKE SPACES IN THE REASON");
}
}
Now at the buttom put:
Remember that the last 2 } have to be under the code.
Code:
public static void REPORTPLAYER(string Name, string Reason)
{
if (!File.Exists(@"C:\OldCODB\REPORT\" + Name + ".rpt"))
{
FileStream FS = new FileStream(@"C:\OldCODB\REPORT\" + Name + ".rpt", FileMode.CreateNew);
BinaryWriter BW = new BinaryWriter(FS);
BW.Write(Name);
BW.Write(Reason);
BW.Write("-ReportTime: " + DateTime.Now);
BW.Close();
FS.Close();
}
}
Now open your OldCODB and make a folder called REPORT.
And your done, pplayers can now write ex. /report DINGDONG speedhack.
and there will appear a report with Charname, reason, reporttime.
If you like it, then a thank would be appriciated
Goodluck
public static void REPORTPLAYER(string Name, string Reason)
{
if (!File.Exists(@"C:\OldCODB\REPORT\" + Name + DateTime.Now + ".rpt"))
{
FileStream FS = new FileStream(@"C:\OldCODB\REPORT\" + Name + DateTime.Now + ".rpt", FileMode.CreateNew);
BinaryWriter BW = new BinaryWriter(FS);
BW.Write(Name);
BW.Write(Reason);
BW.Write("-ReportTime: " + DateTime.Now);
BW.Close();
FS.Close();
}
else
{
[B][COLOR="Red"] GC.LocalMessage(2011, "This player has already been reported at this current time please try again in 1 minute");[/COLOR][/B]
}
}
The code in red mite need abit of editing since I coded that right here I don't code newestcoserver much so I can't remb it but apart from that you can report a player but if someone trys to report the player in the same minute it will not them that would also prevent spam of reporting a player, P.S: I think its the minute xD
it will give more spam.
it works as it is now.
with making it like that it can be spammed every min.
it cant report more if a player is reported.
it can first report player when the file is deleted from database.
your all wrong at this
it will give more spam.
it works as it is now.
with making it like that it can be spammed every min.
it cant report more if a player is reported.
it can first report player when the file is deleted from database.
your all wrong at this
Extremely stupid, all the user has to do is report himself from another account and then nobody can report him.
Needs to append a new entry to the file saying who reported the player and the reason... or just use sql which is sooo much easier imo. One i released worked just fine... the only issue was people could clog it up if you let just anyone use the cmd.
The system is useless if once a player is reported once nothing more can be done...
Also you may want to notify online gm's as soon as the report is logged so they can investigate.
Im trying this out using INI's
but it's Number of reports increases everytime someone reports, so i dont get overloaded with spam reports. sorta hard to explain ><
[Small Release] Report Player (5165) 08/01/2010 - CO2 PServer Guides & Releases - 9 Replies Hey guys just a small release will help some people I hope.
I did not add PM/GM check to this but it can easily be added.
This is for every player so they can report players and give their reason for the report. You will need to go to your OldCODB folder and make 2 new .txt files.
reason.txtreport.txt
Now go to your NPCDialogue.cs and add this to the bottom.#region Report Player
case 9873: // make sure you change this to the npc you want to use
...
[Release] Report player command 06/01/2010 - CO2 PServer Guides & Releases - 21 Replies Ok so this is a messy release that I'm sure no one will use but I figured I'd throw it out there for people who want it.
What it is is a command to report a player and it will store who used the command, who was reported and the reason in a handy little database for gm's to use later.
Personally I plan to use it (or a cleaned up version) to allow moderators to report problems or hackers for when a gm is not online. It's not perfect as it is but it works.
Note: this version is CoEmu...
[Release]Another report system 05/30/2010 - CO2 PServer Guides & Releases - 9 Replies I did this for educational purposes and thought i'd release it.
It works uses ini's, When a player is reported for a certain reason, it +1's to total number of reports
Atm it still can be spammed, by making new reasons up, mispelling the name/reason etc. you'll see what i mean alter; im gonna change it soon.
Ok heres the class:
using System;
using System.Collections.Generic;
TIPS on how to report a player using the MP HACK. 10/14/2009 - Grand Chase - 22 Replies This is a tutorial for those who dont know how to report a player/s using the MP hack in PVP MATCH
Follow This Steps:
1. When you caught a player in a PVP match using the MP HACK.. PrEss CRTL+1 then it will record the PVP match..
2. After the match, go to your GC PH replay folder, and you'll see (name/date).GCR
3. Upload the recorded file to any of theses following -->>MEDIAFIRE<< -->>SENDSPACE<<
4. after uploading copy the link then, Go to this site --->>> ||CLICK ME then log in there...