View Single Post
Author Message
ivenuss
Junior Member
Join Date: Nov 2019
Location: Czech Republic
Old 10-17-2020 , 15:26   [CS:GO/ANY?] Flag (VIP) Manager
Reply With Quote #1

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



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
__________________
My website: https://jakubh.com/ Github: https://github.com/ivenuss Steam: https://steamcommunity.com/id/ivenuss/
Accepting private works in sourcepawn or web dev.

Last edited by ivenuss; 10-17-2020 at 15:28.
ivenuss is offline