Raised This Month: $51 Target: $400
 12% 

[ANY] Player Report


Post New Thread Reply   
 
Thread Tools Display Modes
Denov
Junior Member
Join Date: Nov 2012
Old 11-26-2012 , 13:46   Re: [ANY] Player Report
Reply With Quote #31

Quote:
Originally Posted by thenumb3rguy View Post
can someone fix this plugin? Normal players cant use sm_report or /report.
Try this
Attached Files
File Type: sp Get Plugin or Get Source (playerreportfix.sp - 752 views - 6.2 KB)
File Type: smx playerreportfix.smx (8.5 KB, 372 views)
Denov is offline
NinjaSK
Senior Member
Join Date: Sep 2012
Old 11-27-2012 , 05:37   Re: [ANY] Player Report
Reply With Quote #32

Didn't work as well for some reason, code looks fine x_X
NinjaSK is offline
Denov
Junior Member
Join Date: Nov 2012
Old 11-27-2012 , 18:40   Re: [ANY] Player Report
Reply With Quote #33

Plugin works fine at my server =/
Denov is offline
thenumb3rguy
Senior Member
Join Date: Oct 2012
Location: Hong Kong
Old 11-28-2012 , 09:03   Re: [ANY] Player Report
Reply With Quote #34

Quote:
Originally Posted by Denov View Post
Try this
seemed to work well thanks
thenumb3rguy is offline
Inflikted
SourceMod Donor
Join Date: Jan 2009
Old 11-28-2012 , 10:41   Re: [ANY] Player Report
Reply With Quote #35

any possibility of anyone being able to integrate this into a SQL database. While text logs are fine, with multiple servers it can become a bit of a hassle to dig through each text file.
Inflikted is offline
Inflikted
SourceMod Donor
Join Date: Jan 2009
Old 11-28-2012 , 12:40   Re: [ANY] Player Report
Reply With Quote #36

decided to make one for SQL myself, nothing fancy since I'm not that great of a coder.

Should autocreate a table called report, if it doesn't use this.

Quote:
CREATE TABLE IF NOT EXISTS `report` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`server` varchar(255) NOT NULL,
`client` varchar(255) NOT NULL,
`csteamid` varchar(255) NOT NULL,
`target` varchar(255) NOT NULL,
`tsteamid` varchar(255) NOT NULL,
`reason` varchar(255) NOT NULL,
`date` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
I also added in a new variable to track your server, sm_report_serverid (default = 1)
and I changed sm_report to be flag accessed, default is o flag since I use it for donors. You will have to edit the plugin if you wish to change the flag access.
Attached Files
File Type: sp Get Plugin or Get Source (reportsql.sp - 514 views - 7.8 KB)
File Type: smx reportsql.smx (9.7 KB, 216 views)
Inflikted is offline
Denov
Junior Member
Join Date: Nov 2012
Old 11-28-2012 , 13:39   Re: [ANY] Player Report
Reply With Quote #37

Really nice work!
I like your version.
But i dont have a MySQL and dont like it. Textfile is more comfortable for me ;)
Denov is offline
thenumb3rguy
Senior Member
Join Date: Oct 2012
Location: Hong Kong
Old 11-28-2012 , 20:01   Re: [ANY] Player Report
Reply With Quote #38

you guys are... hijacking threads... anyways, I would prefer a simple web interface for my admins to check reports without accessing the FTP to view the text file.
thenumb3rguy is offline
PsyGaming
SourceMod Donor
Join Date: Sep 2012
Location: Germany
Old 12-11-2012 , 07:30   Re: [ANY] Player Report
Reply With Quote #39

I tried the MySQL version and it adds the reported player to my database, but when I connect to any server, I dont get a message that anyone was reported.
__________________
http://www.psy-gaming.de

Psy-Gaming.de - CS:GO Server Community
We have more than +30 Publicserver running!


PsyGaming is offline
Blacksilver
Member
Join Date: Aug 2011
Location: G E R M A N Y
Old 02-21-2013 , 13:54   Re: [ANY] Player Report
Reply With Quote #40

@Inflikted
something to set up at datenbank.cfg?
Code:
  70 <Error> "SQL Player Report" (1.1) by MasterOfTheXP
Load Errors:
SQL Player Report: Database failure: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
__________________
Come to the dark side, we have cookies *muhaha*
Visit us!

Blacksilver is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode