View Single Post
Author Message
Mitchell
~lick~
Join Date: Mar 2010
Old 04-26-2016 , 13:12   [ANY] GameMe Connect Message
Reply With Quote #1

GameMe Connect Message
This will display a connect message (adjusted through convar) when ever a player connects.

How it works:
There is a webserver php script which will parse the gameme's API XML output into something smaller and readable for SteamWorks to read easily.

Convars:
Code:
sm_gmconnect_enable 1 //Enables/Disables this plugin.
sm_gmconnect_redirect "" //Link to the hosted PHP script
sm_gmconnect_account "" //Gameme Account
sm_gmconnect_format "--" //Connect Message format, see below {1}
sm_gmconnect_error_format "--" //Connect Message format for when a player is not in the gameMe database, see below {1}
sm_gmconnect_flag "b" // User must have this flag to be able to see the connect message, set to blank for all players can see.
sm_gmconnect_game "" //Game of which the server is currently wanting to poll, i.e. "csgo"/"tf2" {2}
sm_gmconnect_method "0" //Method of when the connect message is shown; 0 = OnClientAuth, 1 = Player_spawn
{1} Formatted String
The connect message (as of v1.1.0) has only a few options to print: rank, time, kills, deaths, assists.
These tags are replaced with the following:
{rank} - Player's Overall Rank.
{kills} - Player's total kills
{deaths} - Player's total deaths.
{assists} - Player's total assists.
{itime} - Prints out the int value of time
{ftime} - Prints out the formatted string of time.
There are color tags which are replaced with their corresponding unicode, i.e. {07}/{08} will be replaced with the source2009 unicode to do hex color codes: {07}FF0000 will be Full Red, etc.

Example format (CS:GO):
{0F}[{10}GMC{0F}]{03} {name}{01} connected. Rank: #{04}{rank}
[GMC] mtch connected. Rank: #16

{2} Game Convar
This is a convar just incase you want tf2/csgo stats to show up in other games, etc.
List of supported games by GameMe


Setup
Just upload the php script to your webspace, and setup the config to your gameme account to poll.


Right now the plugin only works for getting the overall status the player's accounts, player kills and deaths will be from all game servers in the selected game/account pair. I plan on adding more to this, and having the ability to request more specific stats. Right now the php script is generic as fuck, and will error out if not properly handled.

DOWNLOAD
Plugin
WebServer PHP Script
Source
Github

Last edited by Mitchell; 12-15-2016 at 14:09.
Mitchell is offline