Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[CSGO] Simple Report System (SQL, CMS, Discord)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
mReport System

DESCRIPTION

Hello everyone, i want to share with you my simple plugin that i wrote which gives players option to report other players on the server. All the data is stored on MySQL server. Admin get's notification whenever report has been submited.

FEATURES
  • Simple plugin that has built in menu options for reporting + custom reason.
  • Everything stored in database, so it will be easily to integrate plugin with many cms or websites.
  • 2 CMS + Discord Integration arleady made for you.
  • Admin notification + sound when someone make a report.
  • Cooldown for each report which you can adjust via cvars.

FREE MADE INTEGRATIONS
  • Invision Community Suite Forums
  • MyBB Forums
  • Discord
Commands
  • !report: Opens player report menu

INSTALLATION AND CONFIGURATION

Upload files to the root directory of your server.

Extensions and Discord Api are arleady in .zip folder
Extra link for Discord Api required plugin to work: CLICK HERE

Enter the Server Name to be displayed in the database in the configuration file generated in csgo/cfg/sourcemod/mReport_Config.cfg

In the csgo /addons/sourcemod/configs/databases.cfg file, fill up mysql database tree, otherwise it will not work.
PHP Code:

"mReport"
{
    
"driver"            "default"
    "host"                "Database Host"
    "database"            "Database Name"
    "user"                "Database Username"
    "pass"                "Database Password"


CVARS

HTML Code:

// Whether to notify the admin if he is on the server about the notification?
// -
// Default: "1"
mAnnounceAdmin "1"

// Enter the delay
// -
// Default: "30"
mCommandTimeInterval "30"

// [ Discord ] Bot name (author of the Discord message).
// -
// Default: "mReport"
mDiscordHookBotBame "mReport"

// [ Discord ] Enable or disable integration with Discord?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
mDiscordIntegration "0"

// [ Discord ] Webhook for a Discord channel
// -
// Default: ""
mDiscordWebHook ""

// Enter the name of your server as it should appear in the database
// -
// Default: "Only Mirage"
mServerName "Only Mirage"

DISCORD INTEGRATION CONFIGURATION

Go to csgo/cfg/sourcemod/mReport_Config.cfg and fill in the discord fields (Remember to enable integration with discord in the cvars)

HTML Code:

// [ Discord ] Bot name (author of the Discord message).
// -
// Default: "mReport"
mDiscordHookBotBame "mReport"

// [ Discord ] Enable or disable integration with Discord?
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
mDiscordIntegration "0"

// [ Discord ] Webhook for a Discord channel
// -
// Default: ""
mDiscordWebHook ""

How to get the URL webhook see point below.

Create a WebHook on a given Discord channel (Reports will appear on this channel).

To do this, just: Right button on the channel name -> Edit channel -> Integrations -> New webhook -> Complete the name and copy the webhook URL and paste it into the configuration file on the server.

Restart the server and try to report someone and everything should work fine.

Presentation:
68747470733a2f2f692e696d6775722e636f6d2f

MYBB AND INVISION COMMUNITY PLUGINS

Detailed instructions on how to install plugins can be found in the folder after unpacking!

DATABASE STRUCTURE: COLUMNS

PHP Code:

ID ] - Report ID.
CLIENT_STEAMID ] - Gets the SteamID of the player that reports.
CLIENT_NAME ] - Retrieves the Nickname of the player that reports.
TARGET_STEAMID ] - Gets the SteamID of the player that was reported.
TARGET_NAME ] - Gets the Nickname of the player that was reported.
SERVER_NAME ] - It gets the server name which the owner of the server will define in cvar.
REPORT_REASON ] - Content of the report.
GAME ] - Gamethat is csgo or cs16 or mcThis makes it easy to sort the reports or make game typesthis value is defined by the plugin.
TIME ] - Gets the time when the report was sent 

EXTENSIONS USED

SMJansson - CLICK HERE
SteamWorks - CLICK HERE

3RD PARTY PLUGIN NEEDED TO INSTALL

Sourcemod Discord Api - CLICK HERE

CREDITS

Sourcemod Discord Api - CLICK HERE
Digby - Helped with code Tweak
DAFF - For creating the plugins for CMS Forums

Everything created with a lot of
Enjoy :up:

Attached Files
File Type: zip mReport [ 0.4.1 ] - Simple Report System.zip (462.0 KB)
File Type: sp Get Plugin or Get Source (Mesharsky_Report.sp - 13.3 KB)
File Type: sp Get Plugin or Get Source (discord_api.sp - 9.7 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...