Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[ANY] GameMe Connect Message


owner_2019
 Udostępnij

Rekomendowane odpowiedzi

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_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

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...