Skip to content

Screenshots (for 1.1x)

Patrik Kos edited this page Jun 7, 2023 · 2 revisions

If you want to take screenshots of players, you need to host a script to handle the uploads.

The URL to the script should be set in the sv_screenshotURL cvar. For example - set sv_screenshotURL "http://mywebsite.com/screenshots/index.php"

The client will send a POST request to the URL, image being in $_FILES['ss'] and player name in $_POST['player'].

Here's an example script that sends screenshots to Discord: https://gist.github.com/patriksh/981d409517527ad70cc548f88f5b4767

You're free to modify it however you want, making a gallery of screenshots, organizing them by days, by players, you can even send alerts back to the gameserver when the screenshot is received etc.

Clone this wiki locally