Garry's Mod

Garry's Mod

Not enough ratings
Player Hours Limit
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
File Size
Posted
Updated
5.736 KB
5 Dec, 2020 @ 10:37pm
7 Dec, 2020 @ 8:16am
2 Change Notes ( view )

Subscribe to download
Player Hours Limit

Description
A simple GMod Addon to keep new players out of Servers.



--- Features ---

When a Player joins your server, the Addon will check if he has enough Playtime (See Config). If the Player's Playtime is exceeding your defined minimum, his SteamID will be saved in a File (playerhourslimit/verifiedplayers.json) so incase he changes his Profile to Private, he will still be verified. If you need to manually Verify a Player, just put his SteamID into that File.



--- Setup ---

When first launching your Server with the Addon, a Folder called playerhourslimit, inside your Server's Data Folder will be created. This Folder will contain a file called apikey.json, in which you must put your Steam Web API key. The API Key can be generated here: https://steamhost.cn/steamcommunity_com/dev/apikey

If you cannot restart the Server to verify the APIKey, call the Concommand 'phl_refresh_apikey' to set the internal value again.



--- Config ---

The default minimum Player Hours is 100, you can set it via console by changing the ConVar: phl_minhours. (Put it into cfg/autoexec to make it persist after Server restart)



Sourcecode: https://github.com/Sixmax/PlayerHoursLimit
5 Comments
Namespace  [author] 10 Aug, 2022 @ 5:08am 
WTF !
Captainrex125 2 Aug, 2022 @ 7:29pm 
george orwell 1984
Trolly_Boi 24 May, 2022 @ 11:23pm 
⠑⡄⠀⠀⠀⠀⠀⠀ ⠀ ⣀⣀⣤⣤⣤⣀⡀
⠸⠿⡀⠀ ⠀ ⠀⣀⡴⢿⣿⣿⣿⣿⣿⣿⣿⣷⣦⡀
⠀⠀⠀⠀⠑⢄⣠⠾⠁⣀⣄⡈⠙⣿⣿⣿⣿⣿⣿⣿⣿⣆
⠀⠀⠀ ⢀⡀⠁⠀⠀⠈⠙⠛⠂⠈⣿⣿⣿⣿⣿⠿⡿⢿⣆
⠀⠀⠀⢀⡾⣁⣀⠀⠴⠂⠙⣗⡀⠀⢻⣿⣿⠭⢤⣴⣦⣤⣹⠀⠀⠀⢀⢴⣶⣆
⠀⠀⢀⣾⣿⣿⣷⣮⣽⣾⣿⣥⣴⣿⣿⡿⢂⠔⢚⡿⢿⣿⣦⣴⣾⠸⣼⡿
⠀⢀⡞⠁⠙⠻⠿⠟⠉⠀⠛⢹⣿⣿⣿⣿⣿⣌⢤⣼⣿⣾⣿⡟⠉
⠀⣾⣷⣶⠇⠀⠀⣤⣄⣀⡀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇
⠀⠉⠈⠉⠀⠀⢦⡈⢻⣿⣿⣿⣶⣶⣶⣶⣤⣽⡹⣿⣿⣿⣿⡇
⠀⠀⠀⠀⠀⠀⠀⠉⠲⣽⡻⢿⣿⣿⣿⣿⣿⣿⣷⣜⣿⣿⣿⡇
⠀⠀ ⠀⠀⠀⠀⠀⢸⣿⣿⣷⣶⣮⣭⣽⣿⣿⣿⣿⣿⣿⣿⠇
⠀⠀⠀⠀⠀⠀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇░▒░▒▒▐
⠀⠀⠀⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
Garry :з 2 Feb, 2022 @ 8:36am 
thats horrible
Litchden 24 Nov, 2021 @ 12:28pm 
░▒░▒▒▐
▌▒▒▀▄▄▄▄▄▄▀▒▒▒▒▒▒▒░▒░▒░▒▒▒▌
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒▒▄▒▒▐