Raised This Month: $106 Target: $400
 26% 

HLTV Report (v1.1.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 02-01-2008 , 22:16   HLTV Report (v1.1.1)
Reply With Quote #1

HLTV Report

Current Version: 1.1.1


Description:
Record Demos with a rcon controlled HLTV server.
Features:
- HLTV server only connected when recording a demo
- started by say command or menu.
- menu to choose the player you want to report, and the reason why.
- all actions will be stored to a simple logfile, and optional in a mysql database.
- simple web part to show and download the demos and status changing added
- automatic steambans support (sb_status will be executed every 120 sec. while recording)
- hostname from HLTV server randomly changed (from hltv_names.cfg)
- if reported player leaves server, hltv stops
Required:
- Socket Module
- SQL Module (optional)
- working 1.6 server with at least amxmodx 1.8 (1.76 still work since 0.99RC2)
- running HLTV Server
- MySQL Server (at least v4.1!)

Installation:
- all .cfg files goes to /configs/hltv_report/
- hltv_report.amxx goes to /plugins/
- hltv_report.txt goes do /data/lang/
- see #define´s and change to your needs
- open /configs/hltv_report/sql.cfg and edit your sql settings (if not exists, default sql settings will be loaded)
Set up your HLTV server:
this cvars needed for work (goes in your hltv.cfg, if don´t exist, create it):
- adminpassword <pw> - the “rcon” password from your hltv server
Other interesting cvars:
- maxclients <n> - set spectator number limit for this proxy (default 120 )
- spectatorpassword <pw> - “sv_password” for your hltv
Any other hltv-cvars not needed for working, so change to whatever you want.
Start your HLTV server, example linux:

./hltv -ip 123.123.123.123 -port 27050
Would start your hltv with ip 123.123.123.123 and port 27050
Settings:
main.cfg:
hlr_hltv_ip <ip> - ip from the hltv-server
hlr_hltv_port <port> - port from the hltv-server
hlr_hltv_rectime <n> - how long should the demo be recorded (seconds)
hlr_hltv_rconpw <pw> - rcon-password (adminpassword) from the hltv-server
hlr_hltv_delay <n> - delay for hltv-server, should be "0"
hlr_immunity <1|0> - hide admins from report menu
hlr_reason_menu <1|0> - use ban reason menu?
hlr_ban_after <1|0> - ban reportet player after recording?
hlr_ban_time <n> - ban time (if hlr_ban_after "1"), 0 = permanent, amxbans supported
hlr_ban_reason <reason> - default ban reason (if hlr_reason_menu "0")
hlr_steambans_cmd <cmd> - command to execute for steambans demo
hlr_use_hud <1|0> - hud shows recordtime remaining to reporter
hlr_debug <1|0> - lot of debug messages and you can report yourself ;)
sql.cfg:
hlr_sql_host <ip> - sql ip
hlr_sql_user <user> - sql username
hlr_sql_pass <pw> - sql password
hlr_sql_db <db> - sql database name
hlr_sql_table <table> - sql table name
hlr_sql_link <url> - offset link to your HLTV cstrike folder
hlr_server_alias <alias> - alias name from your server, saved to database (ex.”Fun#1”)
hltv_names.cfg:
Here you can save your hltv names (shown in scoreboard), plugin will pick a name randomly.
One name per line, default max. 10 names. See defines.
allowed_user.cfg:
Here you can save steamid´s from non admins, who are allowed to use the system. One steam per line, default max. 64. See defines.
defines:
HLTV_IP <ip> - default HLTV Server values EXTERNAL IP!!
HLTV_PORT
<port>
HLTV_RECTIME <n> - record time (default: 120sec)
HLTV_DELAY <n> - should be 0 for working demo-link
HLTV_RCONPW <pw> - "adminpassword" from hltv
HLTV_NAME <name> - default HLTV connect name
HLTV_MAX_NAMES <n> - max HLTV names in hltv_names.cfg
USE_RECTIME_MENU - menu to choose the record time
ADMIN <flag> - admin flag for console / menu command
SAYCOMMAND - allow say-command "/cheater"
SAYADMIN <flag> - admin flag for say command (0 for all)
MAX_ALLOWED_USERS <n> - max users from allowed_user.cfg (default 64)
REPORT_FILE <file> - log for reporting players, located to /logs/
USE_SQL - save recorded data to database, for use with php
REASONS_ARRAY <{…,…}> - report reasons in menu
RECTIME_ARRAY <{…,…}> - rec time values in menu
Credits:
- arCanuM: beta testing
- Hawk552: sqlx tut (http://forums.alliedmods.net/showthread.php?t=46779)
- Mordekay: steambans idea and help
- AMXX Team: for AmxModX ;-)
- slmclarengt: help with windows fix

Changelog:
- v1.0.0: 1st release
- v1.0.1: fixed: SAYADMIN ADMIN_ALL not working
- v1.1.0: fixed: now works on win too (thx slmclarengt)
- v1.1.1: fixed: bug if debugmode is on (thx hasta), configs pack (path now right)

ToDo:
- allow non admins with saved steamid to use the plugin (DONE)
FAQ:
Q: Where I can find the recorded demos?
A: They will be saved in the /cstrike/ folder from your HLTV server
Q: Can I use this demos for steambans?
A: Yes, if your server runs steambans, “sb_status” will be executed every 120sec. If not, only “status” will be sent.
Q: My server is full, the HLTV server can´t connect.
A: Add your HLTV server to your admin list, with access “ab” (by IP)
Q: I often change sv_password on my game server, is this a problem for the HLTV?
A: No, plugin is detecting sv_password.
Notes:
please help translating: http://forums.alliedmods.net/showthread.php?t=66504
example from web part: http://root.prostjumsen.de/hlr_ftp_test/main.php
The End:
currently it runs on my 2 servers without problems since a few month.
feel free helping me optimizing the code.
the added webpart is only a simple example, how you can use this on your hp.
a new webpart is currently at work who can access your demos through ftp.
see updated webpart link.
Attached Files
File Type: rar web.rar (9.1 KB, 3340 views)
File Type: txt hltv_report.txt (2.7 KB, 2460 views)
File Type: sma Get Plugin or Get Source (hltv_report.sma - 4434 views - 34.6 KB)
File Type: rar configs.rar (1.3 KB, 2495 views)
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.

Last edited by |PJ| Shorty; 05-12-2008 at 08:19. Reason: update to v1.1.1, description, configs
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 02-02-2008 , 09:38   Re: HLTV Report
Reply With Quote #2

Could you add a cvar if the hltvserver should do status or sb_status (for steambans servers) to identify the cheater?
__________________

Mordekay is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 02-02-2008 , 10:14   Re: HLTV Report
Reply With Quote #3

this would be possible, but (what i know) steambans (currently) don´t accept hltv demos.
so at the moment it´s useless.
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 02-02-2008 , 14:43   Re: HLTV Report
Reply With Quote #4

Well, but i know they WILL accept them soon. Problem was that with the old HLTVconsole sb_status was not possible. (afaik) That was the reason to not accept them as we coudn't get a proof for the suspected steam-id and they moslty had bad rates, so they sucked in case of suspected aimbot.
__________________

Mordekay is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 02-03-2008 , 10:59   Re: HLTV Report
Reply With Quote #5

thx for your link over pm, will be added to next version
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 02-03-2008 , 13:31   Re: HLTV Report
Reply With Quote #6

Thx. If this is finished i will setup a HLTV server to record cheaters with it. Thi is imo better than running it all the time and wasting ressources.
__________________

Mordekay is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 02-03-2008 , 14:55   Re: HLTV Report
Reply With Quote #7

Looks good
__________________
I am out of order!
grimvh2 is offline
chris
Senior Member
Join Date: Mar 2007
Location: America
Old 02-03-2008 , 18:27   Re: HLTV Report
Reply With Quote #8

Couldn't this plugin be easily spammed?
__________________
chris is offline
Send a message via AIM to chris
Old 02-03-2008, 19:25
|PJ| Shorty
This message has been deleted by |PJ| Shorty. Reason: useless
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 02-05-2008 , 02:34   Re: HLTV Report
Reply With Quote #9

new version, 0.96RC1

- added steambans support (auto, no need to change something)
- some liddle improvements
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
SeToY
SourceMod Donor
Join Date: Jul 2006
Location: Germany
Old 02-05-2008 , 04:26   Re: HLTV Report
Reply With Quote #10

Quote:
Originally Posted by |PJ| Shorty View Post
what do you mean?
er meint, dass man einfach ganz viele demos hintereinander machen kann und so der hltv-server incl. space schnell voll wird ;)
__________________
Success is a lousy teacher. It seduces smart people into thinking they can't lose.
- Bill Gates

Quote:
Originally Posted by Hawk552
SeToY is a retard, scumbag and asshole and you shouldn't pretend that he isn't.
SeToY is offline
Reply


Thread Tools
Display Modes

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 13:42.


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