Register for your free account! | Forgot your password?

You last visited: Today at 20:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE]Report player

Discussion on [RELEASE]Report player within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
[RELEASE]Report player

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
.Summer is offline  
Thanks
4 Users
Old 05/24/2010, 02:24   #2
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
You should append the file if a report already exists, otherwise only one person that report that user.
scottdavey is offline  
Old 05/24/2010, 02:42   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
yahh I released this for CoEmu ages back (forgot about it till now lol)

it's definitely useful to have but I'd suggest you make it only usable by certain players or you will get a shitload of spam...
pro4never is offline  
Old 05/24/2010, 19:36   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Code:
            if (!File.Exists(@"C:\OldCODB\REPORT\" + Name + ".rpt"))
            {
checks if the file does not exist, if it exist, then it dont create
.Summer is offline  
Old 05/24/2010, 20:40   #5
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Quote:
Originally Posted by .Summer View Post
Code:
            if (!File.Exists(@"C:\OldCODB\REPORT\" + Name + ".rpt"))
            {
checks if the file does not exist, if it exist, then it dont create
Yes but there's no code to append if it already exists, meaning only one person can report another person.
scottdavey is offline  
Old 05/24/2010, 20:46   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
you can report more times.
it checks for the currently cmd command.
not for only 1.
there is no problems with it
.Summer is offline  
Old 05/24/2010, 21:40   #7
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Quote:
Originally Posted by .Summer View Post
you can report more times.
it checks for the currently cmd command.
not for only 1.
there is no problems with it
This code doesn't allow more than one person to report someone..
scottdavey is offline  
Old 05/24/2010, 22:22   #8
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Here's a temp soultion
Code:
        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
MonstersAbroad is offline  
Old 05/24/2010, 22:56   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
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
.Summer is offline  
Old 05/24/2010, 23:45   #10
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Quote:
Originally Posted by .Summer View Post
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.
scottdavey is offline  
Old 05/25/2010, 00:07   #11
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
if (Cmd[1] != GC.MyChar.Name)
Arcо is offline  
Old 05/25/2010, 00:29   #12
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by .Arco View Post
if (Cmd[1] != GC.MyChar.Name)
They can still use an alt to report.


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.
pro4never is offline  
Old 05/25/2010, 01:37   #13
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
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 ><
xScott is offline  
Old 05/25/2010, 01:46   #14
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
IMO ig report doesn't work for a game like this, best to use forum reports instead.
scottdavey is offline  
Old 05/25/2010, 02:04   #15
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
Quote:
Originally Posted by scottdavey View Post
IMO ig report doesn't work for a game like this, best to use forum reports instead.
Or get a GM to hunt them down.

Im only doing this for educational purposes, im not that great with INI's, so im learning from it.
xScott is offline  
Reply


Similar Threads Similar Threads
[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...



All times are GMT +1. The time now is 20:22.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.