Register for your free account! | Forgot your password?

You last visited: Today at 20:05

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

Advertisement



[Release] Report player command

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

Reply
 
Old   #1
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
[Release] Report player command

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 but really... it's not hard at all to convert.

Handlers>Chat.cs


Notice you will have some undefined strings. Go up to the top of the file and see string[] Command = Message.Substring(1).Split(' ');

Place these two under that

string Command1 = Message.Substring(1);
string Result = "";

That's just what I used for clearing out the initial part of the msg so that you could write more than 1 word reasons for reporting a player. Simple but somewhat messy fix.


Now Database>Database.cs

PHP Code:
 public static void ReportPlayer(ClientSocket CSocketClientSocket RSocketstring Report1)
        {
            
lock (DatabaseConnection.NewConnection())
            {

                
MySqlCommand Cmd = new MySqlCommand("insert into `Report`(`WhoReport`, `WhoReported`, `Report`) values ('" CSocket.Client.Name "', '" RSocket.Client.Name "', '" Report1 "')"DatabaseConnection.NewConnection());

                
Cmd.ExecuteNonQuery();
            }
        } 

And for the database itself. Open up navicat and create a new database.

Mine is called "Report" with the following fields

ReportUID, int, 11, 0 notnull, key, auto incrimented
WhoReport, varchar, 20, 0, notnull
WhoReported, varchar, 20, 0, notnull
Report, varchar, 200, 0, notnull

That should be all you need, you will wanna add a bool under Characters.cs for "isHH", that's the new moderator position I am adding for players with improved server rights (such as reporting, don't want noobs spamming up the log)


You can also use this type of a thing to log server events such as errors for later reference.... but that's a different thing and I'm super tired so yah.

Enjoy,
Pro4never
pro4never is offline  
Thanks
12 Users
Old 02/05/2010, 13:01   #2
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
I like xD
sawickas is offline  
Old 02/05/2010, 15:52   #3
 
elite*gold: 0
Join Date: Jan 2010
Posts: 74
Received Thanks: 18
good job
Metapod is offline  
Old 02/05/2010, 18:19   #4
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
This is actually a useful release
hunterman01 is offline  
Thanks
1 User
Old 02/05/2010, 20:28   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
I can see this being abused+spammed database.
Not saying its bad lol.
Good job I just see it being abused.
Arcо is offline  
Old 02/05/2010, 20:57   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by .Arco View Post
I can see this being abused+spammed database.
Not saying its bad lol.
Good job I just see it being abused.
That's why it's only a gm/pm/moderator command. Normal players can't report players for that simple reason.
pro4never is offline  
Old 02/08/2010, 04:05   #7
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
could you please convert this for 5165?
copz1337 is offline  
Old 02/08/2010, 04:20   #8
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
No: None of my releases are for 5165 because I have no interest whatsoever in that source.

Beside, any time I spend coding (or awake it seems) is spent working on my server. Working on finishing up my 1v1 dueling system right now actually... I release some of the features I code from time to time simply because I enjoy contributing to epvp.
pro4never is offline  
Thanks
1 User
Old 02/08/2010, 05:48   #9
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Quote:
Originally Posted by pro4never View Post
No: None of my releases are for 5165 because I have no interest whatsoever in that source.

Beside, any time I spend coding (or awake it seems) is spent working on my server. Working on finishing up my 1v1 dueling system right now actually... I release some of the features I code from time to time simply because I enjoy contributing to epvp.
Except the stuff we code isnt getting released

Btw i found that top spouse status i was looking for
hunterman01 is offline  
Old 02/08/2010, 10:49   #10
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by hunterman01 View Post
Except the stuff we code isnt getting released

Btw i found that top spouse status i was looking for
yah exactly. I do release small stuff though that helps people without giving away the functionality of my server (aka this)


Nice job with top spouse! If you could get a list of all the halo id's for reference that would be awesome. As it is right now I only remember a few of them.

As soon as I compile the next rev we will have

-Fully functioning beta duel system (everything works perfectly, simplified for testing though)
-Perfectly balanced ninja skills (since my corrected distance checks to avoid laggy hits ninjas are OVER nerfed lol)
-Correct more attack bugs
-Finally get around to fixing the status update packet so all the effects are working again (shhhh, that was a 6 am coding fuckup after being up all night)

After that is done all I can think of that needs to happen is more systems, minor bug fixes, more npcs and, obviously, more systems (I'm thinking guild war reward system next so that people have a reason to do guild war)

Honestly if we can finish up a few more events and track down a few more bugs we will be very prepared for beta (I'll leave pre-beta up for another week or so though so we can fully test the new **** before going beta)


Damnit! I always do this, I go off topic and ramble where no one cares what I have to say.


Back to my mini-release
pro4never is offline  
Old 03/12/2010, 19:23   #11
 
vgcman1500's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 51
Received Thanks: 47
Nice release ^^
vgcman1500 is offline  
Old 03/12/2010, 20:29   #12
 
xI NiNJA DuCKey's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 51
Received Thanks: 17
+1, Nice Release, Use [code] next time
xI NiNJA DuCKey is offline  
Old 03/12/2010, 21:02   #13
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by xI NiNJA DuCKey View Post
+1, Nice Release, Use [code] next time
[code] or [php], he used [php], as long as it keeps it organized it doesn't really matter.
Arcо is offline  
Old 03/12/2010, 21:50   #14
 
elite*gold: 0
Join Date: Mar 2010
Posts: 133
Received Thanks: 22
great job
herekorvac is offline  
Old 03/13/2010, 12:55   #15
 
xI NiNJA DuCKey's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 51
Received Thanks: 17
use [code] ftw?
Thanks.
xI NiNJA DuCKey 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
05/27/2010 - CO2 PServer Guides & Releases - 19 Replies
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: if (Cmd == "/report") { if (Cmd.Length == 3) { REPORTPLAYER(Cmd, Cmd); GC.LocalMessage(2000, "You have reported: " + Cmd + " For: " + Cmd); }
[HELP PLEASE]What PM COMMAND FOR BOTJAIL OR BANNED PLAYER
12/04/2009 - EO PServer Hosting - 2 Replies
HELLO EVERYONE... Anyone know how to botjail or bann player without using navicat or database.. i mean how to botjail using pm command..anyone know it?what the PM COMMAND to botjail player and what PM COMMAND to relase them..can someone tell me...Please tell me what PM COMMAND TO BANN AND BOTJAIL player and what PM COMMAND TO UN BANN AND UN BOTJAIL them.. thanks regards;)
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 +2. The time now is 20:05.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.