RSSy MYGO.pl Opublikowano Grudzień 15, 2022 o 16:07 RSSy Udostępnij Opublikowano Grudzień 15, 2022 o 16:07 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 Get Plugin or Get Source (anti_family_share.sma - 7.4 KB) anti_fs.txt (16.0 KB) Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi