Informacje o pliku
Opis:
Plugin jest bardzo łatwy do konfiguracji, umożliwia utworzenie TAG'ów w tabeli wyników poprzez plik konfiguracyjny, w którym możemy ustawić hierarchię tagów (Więc gdy ktoś ma 2 flagi plugin nie będzie się bugował, tylko przydzieli osobie TAG który jest wyżej w pliku konfiguracyjnym), flagi wymagane do posiadania TAG'u, lub przydzielenie danego TAG'u tylko danej osobie (np. na STEAMID).
Przykładowy config:
//////////////////////////////////////////////////////////////////
//
// SAMPLE SETUP:
//
// "Title" <- This can be anything. I suggest making it something indicating what the setup is for.
// {
// "flag" "INPUT" <- There are 3 kinds of inputs. See below.
// "tag" "[SOME TAG]" <- Tag.
// "ignore" "1" <- Typically not included. Applies "ignore" setup to client. See below.
// }
//
//////////////////////////////////////////////////////////////////
//
// INPUTS AND ORDER OF OPERATION:
//
// The player will get the first tag that matches them. So, a general order of setups is: Bot setup -> Steam ID setups -> group setups.
//
// BOT: This setup will apply to all bots, and only to bots.
//
// Steam ID (STEAM_X:X:XXXXXXX format): This will apply only to the player whose steam ID it is.
// Note: The plugin checks both "STEAM_0" and "STEAM_1" (steam universe 0 and 1), so if you put the wrong one in, it still works.
//
// Groups: This is a single, multiple, or multiple sets of admin flags.
// e.g. Setting the flag as "a" requires players to have the "a" flag to be considered a match.
// e.g. "at" requires players to have both the "a" AND "t" flags to be considered a match.
// e.g. "a;t" requires players to have either the "a" OR "t" flags to be considered a match.
// e.g. "at;b" requires players to have EITHER: (both the "a" AND "t" flags), OR the "b" flag.
// If either of the two conditions apply, they are considered a match.
// Note: "public" and empty quotes ("") make the access available to all.
//
// "ignore" Setup: When this key-value is included in a setup, you can leave out the "tag" key-value, since it wont be read anyways.
// The purpose of this key-value is to make exceptions for groups.
// e.g. PlayerA doesnt want the group tag that is applied to all donators with flag "a".
// Instead, you could make them a personal setup, using their steam ID as the flag, but with the "ignore" key-value.
// This setup is read first (assuming you put it above the other one), and they exit the function without a tag.
//
//////////////////////////////////////////////////////////////////
// Note: Do not change the word "Setups" in the line below, else the plugin will not read this file.
"Setups"
{
"tag dla bota"
{
"flag" "BOT"
"tag" "[BOT TAG]"
}
"osoba z tym steamid bedzie ignorowana przez plugin i nie dostanie tagu"
{
"flag" "STEAM_0:1:1234567"
"ignore" "1"
}
"tag dla gracza na steamid"
{
"flag" "STEAM_0:1:1234567"
"tag" "[SOME TAG]"
}
"inny tag dla gracza na steamid"
{
"flag" "STEAM_0:1:9876554"
"tag" "[ANOTHER TAG]"
}
"tag dla osob z flaga b"
{
"flag" "b"
"tag" "[ADMIN]"
}
"tag dla osob z flagami aost"
{
"flag" "aost"
"tag" "[VIP]"
}
"tag dla osob z flagą a lub z flagami st"
{
"flag" "a;st"
"tag" "[MEMBER]"
}
}
Cvary:
togsclantags_admflag - flaga/i admina które są wymagane do odświerzania tagów
togsclantags_bots - Czy boty dostają tagi (1 = tak, 0 = nie)
togsclantags_enforetags - Czy jeśli gracz nie pasuje do żadnego tagu powinien pozostać bez? (0 = zezwól graczą na ustawienie jakiegokolwiek tagu, 1 = jeśli nie ma pasującej konfiguracji, pozwól na korzystanie tylko z tagu z configu, 2 = pozwól na tag tylko gdy gracz pasuje do konfiguracji - jeśli nie ma dla niego żadnego pasującego tagu to plugin wymusi, aby gracz miał puste pole jako tag).
togsclantags_updatefreq - Jak często odświeżać tagi (0 = sprawdź tylko raz). Funkcja głównie używana podczas korzystania z innych pluginów, które zmieniają flagi gracza w trakcie gry, np. w połowie mapy.
Instalacja:
Standardowa
Skonfiguruj TAGI w pluginie, załaduj go, skonfiguruj cvary po wygenerowaniu pliku (/cfg/sourcemod/togsclantags.cfg) i wszystko gotowe!
Autor: That One Guy