Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ivenuss
Junior Member
Join Date: Nov 2019
Location: Czech Republic
Plugin ID:
7339
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    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
    NanoC
    Veteran Member
    Join Date: Jan 2016
    Location: Argentina
    Old 10-17-2020 , 15:35   Re: [CS:GO/ANY?] Flag (VIP) Manager
    Reply With Quote #2

    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.
    __________________
    NanoC is offline
    Send a message via Skype™ to NanoC
    starcs
    Member
    Join Date: Nov 2018
    Old 10-17-2020 , 22:12   Re: [CS:GO/ANY?] Flag (VIP) Manager
    Reply With Quote #3

    Quote:
    Originally Posted by NanoC View Post
    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.
    __________________
    Founder of ⭐ STRTEAM
    starcs is offline
    Danielej1
    Senior Member
    Join Date: Jul 2022
    Location: Poland
    Old 09-10-2022 , 19:11   Re: [CS:GO/ANY?] Flag (VIP) Manager
    Reply With Quote #4

    usually works STEAMID?
    Danielej1 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 07:29.


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