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
__________________