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

[L4D AND L4D2] Cannounce Player Info


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[L4D1/L4D2] Cannounce Player Info


Description:
This plugin is able to show in the chat different data about the players that enter your server, the data that the plugin will show are: country, region, city, client counter and reason for disconnection by the client. all parameters are configurable in the autoxec file that is automatically generated.

Notes:
This plugin is based on the original Connect Announce plugin by Arg!
It is a basic version that is designed for L4D1/2, this plugin works with the new API GeoIP2 and new declarations of SourceMod.
I originally hired this plugin for my servers and I decided to share with the community.
Tested in SourceMod 1.9 and SourceMod 1.10

Commands:
sm_geolist <name or #userid> - Print info about the specified customer.

Current Translations:
- English
- Spanish

Cvars:

PHP Code:

// Enables/Disables The Ads On Chat, globally disable all ads and it is only possible to see player data through command.
// 0 = Ads OFF.
// 1 = Ads ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_cannounce_ads_enable "1"

// Enables/Disables The Player Counter In Chat.
// 0 = Counter OFF.
// 1 = Counter ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_cannounce_counter_enable "1"

// Enables/Disables, Print The Reason For Disconnect From Player In The Chat.
// 0 = Disable.
// 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_cannounce_disconnect_enable "1"

// Chat Display Mode.
// 0 = Show Nothing.
// 1 = Show Country, Region And City.
// 2 = Show Country And Region.
// 3 = Show Country And City.
// 4 = Show Only Country.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "4.000000"
l4d_cannounce_displya_mode "1"

// Enables/Disables The Plugin.
// 0 = Plugin OFF.
// 1 = Plugin ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_connounce_enable "1" 

Installation Instructions:
It's necessary to have the GeoLite2-City.mmdb and GeoLite2-Country.mmdb databases at the following address: sourcemod\configs\geoip
geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
It's advisable to delete the old database: GeoIP.dat
You must copy and replace the old file: geoip.ext In: sourcemod\extensions
And the file: geoip.inc In: sourcemod\scripting\include
The file: l4d_cannounce.phrases in: sourcemod\translations
Finally the file l4d_cannounce.smx in: soucermod\plugins

References:
https://forums.alliedmods.net/showthread.php?t=77306
https://forums.alliedmods.net/showthread.php?t=311477

Attached Files
File Type: zip [L4D AND L4D2] Cannounce Player Info.zip (112.6 KB)

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

×
×
  • Dodaj nową pozycję...