AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Simple Admin & VIP Manager [SAVM] (https://forums.alliedmods.net/showthread.php?t=257382)

Arkarr 02-01-2015 10:31

[ANY] Simple Admin & VIP Manager [SAVM]
 
81 Attachment(s)
PLUGIN HAS BEEN RENAMED TO 'SAVM' PLEASE REMOVE THE OLD PLUGIN, 'AdminManager' !!!

Description :
It allow you to help to manage your admins and vip's very simply. Also, a simple web interface, why ? 'cause I HAVE TOO MUCH FREETIME ! (and it's cool)

Demostration :
A exemple of the web interface can be found here :
http://tf2serverofarkarr.ddns.net/Si...minVIPManager/
Username : demo
Password : 123

PS: Don't remove database configuration please :fox:

Screenshots & Videos :

Preview of the web-interface
http://puu.sh/g51fT/a1c57075e5.png
Black'n'white theme :
http://puu.sh/v8dlU/987ea395f5.jpg
CLICK TO VIEW WEB INTERFACE

Cvar & Commands

Cvar :
sm_savm_enable_trial "1" Should be the command sm_trial enabled ?

sm_savm_tmp_flags "opqrst" Flag given when someone type !trial ?

sm_savm_trial_time "1800" For how much time the user is in trial mode (TIME IN SECONDE(S)) ?

sm_savm_trial_day "1" Set after how much DAY(s) a user will be able to do sm_trial again ?

Config file created under /cfg/sourcemod folder after the first start of the plugin

Commands :

sm_savmadd - Add a admin / vip in the database

sm_savmedit - Edit a admin / vip in the database

sm_savmdremove - Remove a admin / vip in the database

sm_trial - Add temporaly a user as a admin/vip >>> HIGHLY REOMMANDED TO TAKE A LOOK AT CVAR <<<

sm_savmexpiration - Show how much time you have your acces.

Installation

Oh fuuuu...

Web interface (not needed but recommended)

1) Download "webinterface.zip" (or webinterfaceB&W.zip for the black'n'white theme) extract and put it in your website using a FTP client, for exemple...

1.1) Now, visit the web page, the path should be something like www. YOURHOST/SimpleAdminVIPManager/

1.2) You should have a failure : Your database configuration doesn't exist, Oh sh*t mm ? Well, not a problem, all planned. Log to your phpmyadmin web interface www. YOURHOST.com/phpmyadmin or what ever you use and create a database named like you want, for exemple "SuperCoolDatabase"

1.3) Now, visit again the web interface, put this time, go to www. YOURHOST.com/SimpleAdminVIPManager/install/install.php and put the corrects infos into fields, and push "accept" button, if the connetion to database worked, you should have the same webpage as in the screenshot (see "Screenshots & Videos" section of this post)

And finally :
REMOVE THE "install" FOLDER IN YOUR WEBSITE !!!

Plugin only

2) Put ManageAdmins.smx in your plugins folder.

3) Configure your database.cfg (in your configs folder!)

Put this at the very end of the file, but right before the last '}' :
Code:

        "SAVM_Database"
        {
                "driver"                        "default"
                "host"                                "YOUR HOST"
                "database"                        "YOUR DATABASE NAME"
                "user"                                "YOUR PHPMYADMIN USER"
                "pass"                                "YOUR PHPMYADMIN PASSWORD"
        }

4) Reload plugins folder, restart map or restart server.

5) You are done!

For those who wanna compille the plugin manually, you will need :
  • MoreColors

Configuration

Config file created under /cfg/sourcemod folder after the first start of the plugin

Bugs :


Any ! Yay everything is fully working !

Request :

  • Adding immunity group, or something like this... [REQUEST] DONE!
  • Adding group support [REQUEST] DONE!

Thanks to :

Wolf39us ! For his admin menu implemantation !
Mitchell for is date check problem fix !

Logs :
------
0.1 : First public release.
0.2 : Now, when you edit the database via the plugin, changes are immediatly made !
0.3 : Web interface not needed anymore ! You can : instal plugin + web interface OR just plugin !
0.4 : Fixed small bugs. All request added (Immunity + group support !)
0.5 : Updated the web interface only. 2 new unused bouttons are now supposed to display logs !
0.6-7 : sm_reloadadmins doesn't wipe already existing and connected admins, yay !
0.8 : Okay, date check fixed and work now :) !
0.9 : I removed the flag check in the web interface, 'cause you are supposed to put group name as well !
1.9.0 : Cleaned a bit the code of the plugin. Also removed all upercase letter in table creation.
1.9.1 : Added full supprot for all browser, (yes, IE included.)
2.0.0 : Fixed minor bugs (sm_reloadadmins when typed into server console.)
2.2.0 : Add a console on the web interface.
-------

IMPORTANT NOTE:
Please, take the most up-to-date web interface (2.3.0) !
Also, do not forget to click on the Updater button after you finished your install !
WEB PANEL REMOVED DUE TO SECURITY ISSUE. I WILL NOT REWRITE IT.
See post there : https://forums.alliedmods.net/showpo...&postcount=442

https://forums.alliedmods.net/showpost.php?p=2403624&postcount=325
This command should be run only if you used to run an older version of the plugin. Once.

You like this plugin ? You wanna help ? Or you just have a few unused virtual coins ? Or you just want to pay me a hot chocolate ? I will be very grateful !

Arkarr 02-01-2015 10:35

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
BEFORE USING THE PLUGIN
All date format are supposed to work like this :
[DAY].[MONTH].[YEAR]
Exemple :
01.01.1999

"Flags" field (in the webinterface) work like this :
[FLAGS]:[IMMUNITY]
For exemple :
abcdfght:80

OR

you can also add user into groups, by puttin the name of your admins group, for exemple :
In your admin_groups.cfg
Code:

"TestGroup"
        {
               
                "flags"                        "z"
                "immunity"                "1"
        }

You want to put in the "Flags" field "TestGroup"

Here is a admin panel integration :
PHP Code:

"Admin Tools"
    
{
        
"Add Admin"
     
{
    
"cmd"        "sm_savmadd #1 #2 #3 01.01.2020"
    "execute"    "player"
    "1"
    
{
        
"type"        "player"
        "method"    "name"
        "title"        "Player:"
    
}
    
"2"    
    
{
        
"type"        "list"
        "title"        "Flags"
        "1"        "ab"
        "1."        "VIP"
        "2"        "abcdefghij"
        "2."        "Regular Admin"
        "3"        "abcdefghijlmn"
        "3."        "Full Admin"
    
}
    
"3"
    
{
        
"type"        "list"
        "title"        "Immunity"
        "1"        "1"
        "1."        "VIP"
        "2"        "98"
        "2."        "Regular Admin"
        "3"        "99"
        "3."        "Full Admin"
      
}
      }
        
"Edit Admin"
     
{
    
"cmd"        "sm_savmedit #1 #2 #3 01.01.2020"
    "execute"    "player"
    "1"
    
{
        
"type"        "player"
        "method"    "name"
        "title"        "Player:"
    
}
    
"2"    
    
{
        
"type"        "list"
        "title"        "Flags"
        "1"        "ab"
        "1."        "VIP"
        "2"        "abcdef"
        "2."        "Regular Admin"
        "3"        "abcdefghijlmn"
        "3."        "Full Admin"
    
}
    
"3"
    
{
        
"type"        "list"
        "title"        "Immunity"
        "1"        "1"
        "1."        "VIP"
        "2"        "98"
        "2."        "Regular Admin"
        "3"        "99"
        "3."        "Full Admin"
      
}
     }
     
"Delete Admin"
    
{
    
"cmd"        "sm_savmdremove #1"
    "execute"    "player"
    "1"
    
{
        
"type"        "player"
        "method"    "name"
        "title"        "Player:"
    
}
    }




Also, don't forget to visit this page daily. Updates may come every day(s) !

What's planned now :

Nothing.

Snaggle 02-01-2015 11:21

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
Do you have a Demo site we can check out?

Arkarr 02-01-2015 11:26

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
Quote:

Originally Posted by Snaggle (Post 2257169)
Do you have a Demo site we can check out?

Erf.. no ? Let me buid it, just a few sec needed, please, take a virtual seat...

SnapDragon 02-01-2015 11:32

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
Hey can you add that also so you can add Admins and Vips in admins.cfg?

Arkarr 02-01-2015 11:42

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
Quote:

Originally Posted by SnapDragon (Post 2257172)
Hey can you add that also so you can add Admins and Vips in admins.cfg?

This plugin is NOT supposed to do that. Please, use the search page of this forum to found wich plugin who do that already, I know they exist, I saw them...

@Snaggle
Here --> http://serverofarkarr.no-ip.biz/SimpleAdminVIPManager/

Username : demo
Password : 123

PS: Don't remove database configuration please :fox:

Sreaper 02-01-2015 12:29

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
You should add text under those interface icons.

QentiC 02-01-2015 12:54

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
When trying to install the web interface, I do not get any fields to set the database info to. Huh?

Edit: Works like a charm now! I love to control my server over web and this just made the possibilities even wider.

Arkarr 02-01-2015 13:20

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
Quote:

Originally Posted by Sreaper (Post 2257195)
You should add text under those interface icons.

Alright ! Will do that right after I finish things...

Quote:

Originally Posted by QentiC (Post 2257202)
When trying to install the web interface, I do not get any fields to set the database info to. Huh?

You didn't read the installation guide, did you ?
>>> [YOUR HOST]/SimpleAdminVIPManager/install/install.php <<<

QentiC 02-01-2015 13:33

Re: [ANY] Simple Admin and VIP Manager [SAVM]
 
Quote:

Originally Posted by Arkarr (Post 2257213)
You didn't read the installation guide, did you ?
>>> [YOUR HOST]/SimpleAdminVIPManager/install/install.php <<<



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

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