AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [SourcePawn/JS] Admin Applications (https://forums.alliedmods.net/showthread.php?t=328272)

HirboSH 11-02-2020 18:43

[SourcePawn/JS] Admin Applications
 
Applications

Introduction

A plugin that allows easier submission of applications to be one of the server's Admin, built into the game. All the answers stored at your own DB. [Discord bot included, the bot gives you the option to manage the applications easily];

Usage

Plugin Usage

sm_applications | sm_application | sm_apps;

Start a new application, then click the question you want to answer.

When you finish all the 6 questions, the application will be stored in your DB. :D


NOTE : In the DB qurey i set the column PlayerID to be ``UNIQUE``. It means that a player can apply an application only 1 time. [If the application gets declined, the player will be able to apply again];

Bot Usage

Run the bot.

Execute - YOUR_PREFIXhelp. [You can change the PRERFIX in .env file];

NOTE : The bot's goal is to make review the applications in a easier way.

!accept <Application_ID> will accept the application, send a message to a channel that you pre-set. (remember in .env file, CHANNEL?);
!decline <Application_ID> will decline the application.

NOTE : In both commands accept and decline the application will be deleted automatically.


Cvars

name, defualt value, description

1. sm_applications_timer_enabled - 1, Enable or disable plugin timer (A reminder for applying to be an Admin), [Default = 1 / Enbaled]

2. sm_applications_prefix - [Simple Applications], Set the plugin prefix. [Default = 'Simple Applications'];

Built With

Plugin

1. SourceMod + SDKTools - v1.10 - build 6499 https://www.sourcemod.net

Bot

1. Discord.js - v12.3.1; https://discord.js.org

2. DotENV - v8.2.0; https://www.npmjs.com/package/dotenv

3. Fs - v0.0.1-security; https://www.npmjs.com/package/fs

4. MySQL - v2.18.1; https://www.npmjs.com/package/mysql

5. Path - v0.12.7; https://www.npmjs.com/package/path


:D <3

You can find the full guide at the README file in the Github repo.

Github Repo : https://github.com/HirboSH/easy-admin-applications

Di3Z1E 11-02-2020 23:57

Re: [CS:GO] Applications
 
Actually a useful plugin, but i would add a check in the db for duplicated entries, to block user to spam the application, and a check for gagged players, this will make abusing the plugin a bit more problematic

HirboSH 11-03-2020 00:37

Re: [CS:GO] Applications
 
Quote:

Originally Posted by Di3Z1E (Post 2723534)
Actually a useful plugin, but i would add a check in the db for duplicated entries, to block user to spam the application, and a check for gagged players, this will make abusing the plugin a bit more problematic

I made at the DB query that their SteamID is UNIQUE. So it means that it would work only if the player isn't in the database. But ill add a cool-down in the next version.
About the gagged players, ill try to handle that too. Thanks!

K1lleR_gamea 11-03-2020 00:59

Re: [CS:GO] Applications
 
good job! :)
but where is my credit? XD

HirboSH 11-03-2020 01:01

Re: [CS:GO] Applications
 
Quote:

Originally Posted by K1lleR_gamea (Post 2723541)
good job! :)
but where is my credit? XD

xD : D

RiToRn 11-03-2020 01:36

Re: [CS:GO] Applications
 
Great job ! Actually a useful plugin !

HirboSH 11-03-2020 02:23

Re: [CS:GO] Applications
 
Quote:

Originally Posted by RiToRn (Post 2723543)
Great job ! Actually a useful plugin !

: D

Tired 11-11-2020 10:11

Re: [SourcePawn/JS] Admin Applications
 
nice one!


All times are GMT -4. The time now is 14:43.

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