This plugin is designed to connect a forum based on XenForo 2 and a game server.
Installation:
Put the xf_admin.smx file at: /addons/sourcemod/plugins
And
Put the xf_admin.txt file at: /addons/sourcemod/configs
Config configuration:
PHP Code:
"xf_admin"
{
"20" //Group ID from XF admin panel.
{
"flags" "t" //admin flags
"immunity" "0" //admin immunity
}
}
DataBase configuration:
You must connect to the forum database.
PHP Code:
"xf_admin"
{
"driver" "mysql"
"host" ""
"database" ""
"user" ""
"pass" ""
//"port" "3306"
}
The plugin automatically exposes the administrator username to the players in their name on the forum. (
If you look through sm_who)
If the player has several groups, and they are described in the config, then the plugin adds all the flags at once, and the immunity sets the highest.