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

RSSAnti Family Share 2022 [WORKING]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Requirements:
AmxModX 1.8.3+
AmxxEasyHttp LINK TO DOWNLOAD
Steam Web API KEY CLICK TO GET YOURS (You get access to it once you spend $5 or more on steam)

How it works:
Player connects > We query his steam id if he's not in the white list
Steam profile private > We punish the player until he sets it to public so he can pass our check, of course we also print in console why we punish him.
(Note that this is a caveat because the proper API call was deprecated by steam, so we have to do it in another way which requires the privacy settings of the player to be public)
Steam profile public > If he owns cs 1.6 we let him play and write his steamid in a whitelist file (afs_whitelist.ini located in configs folder) this way we save queries next time they join!
Player passed check > We don't care anymore if his profile is private or not, forever! (unless you clear the afs_whitelist.ini file)
Cvars:
Whether it will be enabled or not...
amx_antifs_enabled 0|1
The steam web api key cvar
amx_antifs_steam_api_key "THIS_IS_WHERE_YOUR_STEAM_WEB_API_KEY_GOE S"
The type of punishment, 0 = kick, 1 = ban
amx_antifs_punish_type 0|1
The amount of ban duration in minutes
amx_antifs_punish_duration 0|1|2|3|4|5...
Whether to announce to other players, 0 = no, 1 = only success, 2 = both success and fail
amx_antifs_announce_others 0|1|2

Installation:
Get the plugin source, compile, put it in plugins folder
In plugins.ini add anti_family_share.amxx
In addons/amxmodx/data/lang/ put the anti_fs.txt file (it's the multi language file necessary for it to work properly, otherwise the players won't know why they're kicked... DO NOT FORGET)
Add your steam web api key in amxx.cfg via amx_antifs_steam_api_key, and change the other cvars as you see fit, but DO NOT FORGET ABOUT THE API KEY!

Bugs:
Unknown, waiting for feedback.

Attached Files
File Type: sma Get Plugin or Get Source (anti_family_share.sma - 7.4 KB)
File Type: txt anti_fs.txt (16.0 KB)

Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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