AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   HLTV Report (v1.1.1) (https://forums.alliedmods.net/showthread.php?t=66506)

|PJ| Shorty 02-01-2008 21:16

HLTV Report (v1.1.1)
 
4 Attachment(s)
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. :wink:
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.

Mordekay 02-02-2008 08:38

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

|PJ| Shorty 02-02-2008 09:14

Re: HLTV Report
 
this would be possible, but (what i know) steambans (currently) don´t accept hltv demos.
so at the moment it´s useless.

Mordekay 02-02-2008 13:43

Re: HLTV Report
 
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.

|PJ| Shorty 02-03-2008 09:59

Re: HLTV Report
 
thx for your link over pm, will be added to next version :up:

Mordekay 02-03-2008 12:31

Re: HLTV Report
 
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.

grimvh2 02-03-2008 13:55

Re: HLTV Report
 
Looks good :up:

chris 02-03-2008 17:27

Re: HLTV Report
 
Couldn't this plugin be easily spammed?

|PJ| Shorty 02-05-2008 01:34

Re: HLTV Report
 
new version, 0.96RC1

- added steambans support (auto, no need to change something)
- some liddle improvements

SeToY 02-05-2008 03:26

Re: HLTV Report
 
Quote:

Originally Posted by |PJ| Shorty (Post 581353)
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 ;)


All times are GMT -4. The time now is 22:09.

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