AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO/ANY?] Flag (VIP) Manager (https://forums.alliedmods.net/showthread.php?t=327936)

ivenuss 10-17-2020 15:26

[CS:GO/ANY?] Flag (VIP) Manager
 
Description
Adds user to database with admin flag to specific duration & whenever user joins to server he obtains admin flag. Good way to use this plugin for adding VIPs.

Database preview

https://i.imgur.com/WCDjsGB.png

Installation

connect to your mysql in databases.cfg

HTML Code:

"flag_manager"
{
    "driver"                        "mysql"
    "host"                          "localhost"
    "database"                      ""
    "user"                          ""
    "pass"                          ""
}

Cvars
Code:

sm_fm_adminflag "b" //Admin flags with access to admin commands.
Commands
  • sm_addflag <steamid64> <flag> <duration> <unit>
  • sm_extendflag <steamid64> <duration> <unit>
  • sm_deleteflag <steamid64>

Usage

Allowed units: second, minute, hour, day, week, month, year
  • sm_addflag 45228196148486128 abo 5 day
  • sm_extendflag 45228196148486128 1 month
  • sm_deleteflag 45228196148486128

-------------
Thanks to @Impact123 for code review and minor code changes.

Download:

Main repository
Direct download

NanoC 10-17-2020 15:35

Re: [CS:GO/ANY?] Flag (VIP) Manager
 
Suggestion: add a cvar to control the possibility to use flags or admin groups. There're a lot of plugins like this but no one is handling admin groups.

starcs 10-17-2020 22:12

Re: [CS:GO/ANY?] Flag (VIP) Manager
 
Quote:

Originally Posted by NanoC (Post 2721663)
Suggestion: add a cvar to control the possibility to use flags or admin groups. There're a lot of plugins like this but no one is handling admin groups.

thats a great idea.

Danielej1 09-10-2022 19:11

Re: [CS:GO/ANY?] Flag (VIP) Manager
 
usually works STEAMID?


All times are GMT -4. The time now is 12:01.

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