Raised This Month: $29 Target: $400
 7% 

[CS:GO] No Dupe Account (1.4.3, 2021-04-10)


Post New Thread Reply   
 
Thread Tools Display Modes
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 03-20-2021 , 14:42   Re: [CS:GO] No Dupe Account (1.3.1, 2021-03-18)
Reply With Quote #41

I have a problem:

L 03/20/2021 - 00:11:23: [no_dupe_account.smx] Approved PabloEscobar<196><STEAM_1:1><> (Playtime request failed)
L 03/20/2021 - 00:11:28: [no_dupe_account.smx] Playtime request failed!
L 03/20/2021 - 00:11:28: [no_dupe_account.smx] Approved rare<219><STEAM_1:0><> (Playtime request failed)
L 03/20/2021 - 00:113: [no_dupe_account.smx] Playtime request failed!
L 03/20/2021 - 00:113: [no_dupe_account.smx] Approved Lau<225><STEAM_1:0><> (Playtime request failed)
L 03/20/2021 - 00:120: [no_dupe_account.smx] Playtime request failed!
L 03/20/2021 - 00:120: [no_dupe_account.smx] Approved nikimarius<221><STEAM_1:1><> (Playtime request failed)
L 03/20/2021 - 00:13:22: [no_dupe_account.smx] Playtime request failed!
jugule is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Old 03-20-2021 , 15:35   Re: [CS:GO] No Dupe Account (1.3.1, 2021-03-18)
Reply With Quote #42

Quote:
Originally Posted by jugule View Post
I have a problem:

L 03/20/2021 - 00:11:23: [no_dupe_account.smx] Approved PabloEscobar<196><STEAM_1:1><> (Playtime request failed)
L 03/20/2021 - 00:11:28: [no_dupe_account.smx] Playtime request failed!
L 03/20/2021 - 00:11:28: [no_dupe_account.smx] Approved rare<219><STEAM_1:0><> (Playtime request failed)
L 03/20/2021 - 00:113: [no_dupe_account.smx] Playtime request failed!
L 03/20/2021 - 00:113: [no_dupe_account.smx] Approved Lau<225><STEAM_1:0><> (Playtime request failed)
L 03/20/2021 - 00:120: [no_dupe_account.smx] Playtime request failed!
L 03/20/2021 - 00:120: [no_dupe_account.smx] Approved nikimarius<221><STEAM_1:1><> (Playtime request failed)
L 03/20/2021 - 00:13:22: [no_dupe_account.smx] Playtime request failed!
Check that you have a valid SteamAPI key on this convar: nda_steamapi_key
You can get one here: https://steamcommunity.com/dev/apikey

If this still happens after that, you can reach me out on discord by adding me: https://discord.com/users/372454796805931019 (if you want to fix the problem with me more efficiently), else you can comment here or open an issue on GitHub

The plugin automatically approves players if the playtime request fails to prevent them from not being able to join your server and losing players
__________________

Last edited by azalty; 03-20-2021 at 15:35.
azalty is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Old 03-25-2021 , 19:36   Re: [CS:GO] No Dupe Account (1.3.1, 2021-03-18)
Reply With Quote #43

Version 1.4.0

- Added a database system (supports both MySQL and SQLite) (#5)
- Rewrote some parts of code to make them work with the DB system
- Changed some function types to void instead of int
- Errors are now properly logged as sourcemod errors instead of messages
- Fixed translations (#6 #7)
- Other small changes to the code

NOTE: As big changes to the core plugin have been made to make this DB system possible, they might have created some bugs. I did my best to fix the ones I found. If you find any, please report them

#number refers to github issues/pull requests
__________________
azalty is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 04-29-2021 , 12:32   Re: [CS:GO] No Dupe Account (1.4.3, 2021-04-10)
Reply With Quote #44

@azalty could ask me a question. I would like the plugin to check Prime Status, Time Played, Steam Time, VAC & Game Bans, Community Bans.

I configured the plugin as follows:
PHP Code:
// This file was auto-generated by AutoExecConfig read and append beta
// ConVars for plugin "no_dupe_account.smx"


// (Requires SteamWorks)
// A SteamAPI key that will be used to check playtime
// Get your own at: https://steamcommunity.com/dev/apikey
// This is a sensitive key, don't share it!
// Needed to get the playtime or prime status
// -
// Default: ""
nda_steamapi_key "XXXXXXXXXXXXX"

// (Requires Discord API and SteamWorks)
// Discord integration with a webhook
// empty = disabled
// webhook url = enable
// -
// Default: ""
nda_discord "https://discord.com/api/webhooks/XXXXXXXXXXXXXX"

// Enable saving player values in a database.
// Will act as a cache, if a player doesn't want to keep is profile public, he can join once while it's public and it won't deny him in the future.
// 1 = enabled
// 0 = disabled
// Database config name: 'no_dupe_account'
// -
// Default: "1"
nda_database "1"

// (Requires Database)
// any integer = refresh players values if older than X minutes
// 0 = never refresh (recommended if you don't plan on using the DB for other reasons)
// NOTE: Player values will ALWAYS refresh if they are denied, but this will NOT count as a true full refresh
// -
// Default: "1440"
nda_database_refresh "1440"

// (Requires Database)
// any integer = players values are deleted if older than X days (using refresh as well is recommended)
// 0 = keep player values forever
// NOTE: Deleting really old values of players that don't play anymore is recommended
// -
// Default: "365"
nda_database_expire "30"

// (Requires SteamWorks)
// 0 = disabled
// 1 = check for VPNs or proxies, and send an in-game alert to admins if someone is potentially using one (and a discord message if setup)
// 2 = is a user check that fails is user has a VPN
// 3 = kick user
// -
// Default: "1"
nda_vpn "1"

// 0 = disabled
// any integer = is a user check that fails if his level is under this value. Keep in mind if someone gets his service medal he will go back to level 1
// -
// Default: "2"
nda_level "1"

// (Requires SteamWorks)
// 0 = disabled
// 1 = is a user check that fails if user is not prime (will only work if user paid the game) + nda menu
// 2 = only add an !nda menu displaying non-prime players
// -
// Default: "1"
nda_prime "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if he has less mins in playtime than asked or has private hours
// any negative integer = same as positive, but is not a check and will kick user
// -
// Default: "120"
nda_playtime "-45"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if his steam level is under this value or his profile is private
// any negative integer = same as positive, but is not a check and will kick user
// -
// Default: "5"
nda_steam_level "0"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if his steam account age is newer than this value in minutes or his profile is private
// any negative integer = same as positive, but is not a check and will kick user
// &integer (ex: &60) = same as negative, but will not kick user if his profile is private
// -
// Default: "1576800"
nda_steam_age "-420"

// 0 = disabled
// 1 = is a user check that fails if he doesn't have any CS:GO coin/badge equipped
// 2 = kick user if he doesn't have any CS:GO coin/badge equipped (this is not recommended as a lot of players don't have a coin)
// -
// Default: "1"
nda_coin "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been VAC banned at least X times
// -
// Default: "0"
nda_bans_vac "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been Game banned at least X times
// -
// Default: "0"
nda_bans_game "1"

// (Requires SteamAPI Key)
// 0 = disabled
// 1 = kick player if he is community banned (spam, phishing, nudity...)
// These people will have private profiles and are unable to add friends or comment.
// 2 = send an in-game alert to admins if player is community banned (and a discord message if setup)
// -
// Default: "2"
nda_bans_community "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been banned at least X times (VAC+Game bans)
// -
// Default: "0"
nda_bans_total "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any positive integer = send an in-game alert to admins (and a discord message if setup) if player has been VAC or Game banned X days ago or less
// any negative integer = same as positive integer, but instead of sending an alert, it will kick the player
// -
// Default: "5"
nda_bans_recent "-1"

// 0 = don't log
// 1 = log check approvals & refusals to server's console
// 2 = log check refusals to server's console
// -
// Default: "1"
nda_log "1" 
In this check he has to pass all of them to be able to enter the server, in case one fails or he does not have the requirements, kicakdo.

Then if you want the player to leave his profile private if he passes all checks and enter normally.

And if he takes a VAC Ban or Game Ban he would not enter the server anymore, it would be prohibited.

Would the above configuration be correct to work like this?
__________________
paulo_crash is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Old 04-29-2021 , 17:04   Re: [CS:GO] No Dupe Account (1.4.3, 2021-04-10)
Reply With Quote #45

Quote:
Originally Posted by paulo_crash View Post
@azalty could ask me a question. I would like the plugin to check Prime Status, Time Played, Steam Time, VAC & Game Bans, Community Bans.

I configured the plugin as follows:
PHP Code:
// This file was auto-generated by AutoExecConfig read and append beta
// ConVars for plugin "no_dupe_account.smx"


// (Requires SteamWorks)
// A SteamAPI key that will be used to check playtime
// Get your own at: https://steamcommunity.com/dev/apikey
// This is a sensitive key, don't share it!
// Needed to get the playtime or prime status
// -
// Default: ""
nda_steamapi_key "XXXXXXXXXXXXX"

// (Requires Discord API and SteamWorks)
// Discord integration with a webhook
// empty = disabled
// webhook url = enable
// -
// Default: ""
nda_discord "https://discord.com/api/webhooks/XXXXXXXXXXXXXX"

// Enable saving player values in a database.
// Will act as a cache, if a player doesn't want to keep is profile public, he can join once while it's public and it won't deny him in the future.
// 1 = enabled
// 0 = disabled
// Database config name: 'no_dupe_account'
// -
// Default: "1"
nda_database "1"

// (Requires Database)
// any integer = refresh players values if older than X minutes
// 0 = never refresh (recommended if you don't plan on using the DB for other reasons)
// NOTE: Player values will ALWAYS refresh if they are denied, but this will NOT count as a true full refresh
// -
// Default: "1440"
nda_database_refresh "1440"

// (Requires Database)
// any integer = players values are deleted if older than X days (using refresh as well is recommended)
// 0 = keep player values forever
// NOTE: Deleting really old values of players that don't play anymore is recommended
// -
// Default: "365"
nda_database_expire "30"

// (Requires SteamWorks)
// 0 = disabled
// 1 = check for VPNs or proxies, and send an in-game alert to admins if someone is potentially using one (and a discord message if setup)
// 2 = is a user check that fails is user has a VPN
// 3 = kick user
// -
// Default: "1"
nda_vpn "1"

// 0 = disabled
// any integer = is a user check that fails if his level is under this value. Keep in mind if someone gets his service medal he will go back to level 1
// -
// Default: "2"
nda_level "1"

// (Requires SteamWorks)
// 0 = disabled
// 1 = is a user check that fails if user is not prime (will only work if user paid the game) + nda menu
// 2 = only add an !nda menu displaying non-prime players
// -
// Default: "1"
nda_prime "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if he has less mins in playtime than asked or has private hours
// any negative integer = same as positive, but is not a check and will kick user
// -
// Default: "120"
nda_playtime "-45"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if his steam level is under this value or his profile is private
// any negative integer = same as positive, but is not a check and will kick user
// -
// Default: "5"
nda_steam_level "0"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if his steam account age is newer than this value in minutes or his profile is private
// any negative integer = same as positive, but is not a check and will kick user
// &integer (ex: &60) = same as negative, but will not kick user if his profile is private
// -
// Default: "1576800"
nda_steam_age "-420"

// 0 = disabled
// 1 = is a user check that fails if he doesn't have any CS:GO coin/badge equipped
// 2 = kick user if he doesn't have any CS:GO coin/badge equipped (this is not recommended as a lot of players don't have a coin)
// -
// Default: "1"
nda_coin "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been VAC banned at least X times
// -
// Default: "0"
nda_bans_vac "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been Game banned at least X times
// -
// Default: "0"
nda_bans_game "1"

// (Requires SteamAPI Key)
// 0 = disabled
// 1 = kick player if he is community banned (spam, phishing, nudity...)
// These people will have private profiles and are unable to add friends or comment.
// 2 = send an in-game alert to admins if player is community banned (and a discord message if setup)
// -
// Default: "2"
nda_bans_community "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been banned at least X times (VAC+Game bans)
// -
// Default: "0"
nda_bans_total "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any positive integer = send an in-game alert to admins (and a discord message if setup) if player has been VAC or Game banned X days ago or less
// any negative integer = same as positive integer, but instead of sending an alert, it will kick the player
// -
// Default: "5"
nda_bans_recent "-1"

// 0 = don't log
// 1 = log check approvals & refusals to server's console
// 2 = log check refusals to server's console
// -
// Default: "1"
nda_log "1" 
In this check he has to pass all of them to be able to enter the server, in case one fails or he does not have the requirements, kicakdo.

Then if you want the player to leave his profile private if he passes all checks and enter normally.

And if he takes a VAC Ban or Game Ban he would not enter the server anymore, it would be prohibited.

Would the above configuration be correct to work like this?
having nda_level "1" is useless since you'll basically accept every player (with the check method), making nda_prime and nda_coin useless

additionally, players will be kicked if their profile/playtime is private, or if they have less than 45 mins of playtime, or if their steam account was created less than 7 hours ago

they will also be kicked if they have any active community ban, or had any vac/game ban (not really recommended since a lot of people have vac/game bans because of old things, such as DLCs unlockers in old games)
__________________
azalty is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 04-29-2021 , 17:57   Re: [CS:GO] No Dupe Account (1.4.3, 2021-04-10)
Reply With Quote #46

Quote:
Originally Posted by azalty View Post
having nda_level "1" is useless since you'll basically accept every player (with the check method), making nda_prime and nda_coin useless

additionally, players will be kicked if their profile/playtime is private, or if they have less than 45 mins of playtime, or if their steam account was created less than 7 hours ago

they will also be kicked if they have any active community ban, or had any vac/game ban (not really recommended since a lot of people have vac/game bans because of old things, such as DLCs unlockers in old games)
I think I understand, I made some changes:
PHP Code:
// This file was auto-generated by AutoExecConfig read and append beta
// ConVars for plugin "no_dupe_account.smx"


// (Requires SteamWorks)
// A SteamAPI key that will be used to check playtime
// Get your own at: https://steamcommunity.com/dev/apikey
// This is a sensitive key, don't share it!
// Needed to get the playtime or prime status
// -
// Default: ""
nda_steamapi_key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

// (Requires Discord API and SteamWorks)
// Discord integration with a webhook
// empty = disabled
// webhook url = enable
// -
// Default: ""
nda_discord "https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXX"

// Enable saving player values in a database.
// Will act as a cache, if a player doesn't want to keep is profile public, he can join once while it's public and it won't deny him in the future.
// 1 = enabled
// 0 = disabled
// Database config name: 'no_dupe_account'
// -
// Default: "1"
nda_database "1"

// (Requires Database)
// any integer = refresh players values if older than X minutes
// 0 = never refresh (recommended if you don't plan on using the DB for other reasons)
// NOTE: Player values will ALWAYS refresh if they are denied, but this will NOT count as a true full refresh
// -
// Default: "1440"
nda_database_refresh "1440"

// (Requires Database)
// any integer = players values are deleted if older than X days (using refresh as well is recommended)
// 0 = keep player values forever
// NOTE: Deleting really old values of players that don't play anymore is recommended
// -
// Default: "365"
nda_database_expire "30"

// (Requires SteamWorks)
// 0 = disabled
// 1 = check for VPNs or proxies, and send an in-game alert to admins if someone is potentially using one (and a discord message if setup)
// 2 = is a user check that fails is user has a VPN
// 3 = kick user
// -
// Default: "1"
nda_vpn "1"

// 0 = disabled
// any integer = is a user check that fails if his level is under this value. Keep in mind if someone gets his service medal he will go back to level 1
// -
// Default: "2"
nda_level "0"

// (Requires SteamWorks)
// 0 = disabled
// 1 = is a user check that fails if user is not prime (will only work if user paid the game) + nda menu
// 2 = only add an !nda menu displaying non-prime players
// -
// Default: "1"
nda_prime "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if he has less mins in playtime than asked or has private hours
// any negative integer = same as positive, but is not a check and will kick user
// -
// Default: "120"
nda_playtime "-2700"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if his steam level is under this value or his profile is private
// any negative integer = same as positive, but is not a check and will kick user
// -
// Default: "5"
nda_steam_level "0"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if his steam account age is newer than this value in minutes or his profile is private
// any negative integer = same as positive, but is not a check and will kick user
// &integer (ex: &60) = same as negative, but will not kick user if his profile is private
// -
// Default: "1576800"
nda_steam_age "-420"

// 0 = disabled
// 1 = is a user check that fails if he doesn't have any CS:GO coin/badge equipped
// 2 = kick user if he doesn't have any CS:GO coin/badge equipped (this is not recommended as a lot of players don't have a coin)
// -
// Default: "1"
nda_coin "0"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been VAC banned at least X times
// -
// Default: "0"
nda_bans_vac "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been Game banned at least X times
// -
// Default: "0"
nda_bans_game "1"

// (Requires SteamAPI Key)
// 0 = disabled
// 1 = kick player if he is community banned (spam, phishing, nudity...)
// These people will have private profiles and are unable to add friends or comment.
// 2 = send an in-game alert to admins if player is community banned (and a discord message if setup)
// -
// Default: "2"
nda_bans_community "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been banned at least X times (VAC+Game bans)
// -
// Default: "0"
nda_bans_total "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any positive integer = send an in-game alert to admins (and a discord message if setup) if player has been VAC or Game banned X days ago or less
// any negative integer = same as positive integer, but instead of sending an alert, it will kick the player
// -
// Default: "5"
nda_bans_recent "-1"

// 0 = don't log
// 1 = log check approvals & refusals to server's console
// 2 = log check refusals to server's console
// -
// Default: "1"
nda_log "1" 
I believe that's it, check if the player has the requirements:
  • Steam account for at least 7 hours;
  • If you played the CSGO for at least 45 hours;
  • Check if the player has Prime Status;
If he has it all, he can log on to the server. If he fails any of these requirements, he is kicked.

And after he gets in he can leave the steam profile private again that he is no longer kicked.
__________________
paulo_crash is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Old 04-29-2021 , 18:01   Re: [CS:GO] No Dupe Account (1.4.3, 2021-04-10)
Reply With Quote #47

Quote:
Originally Posted by paulo_crash View Post
I think I understand, I made some changes:
PHP Code:
// This file was auto-generated by AutoExecConfig read and append beta
// ConVars for plugin "no_dupe_account.smx"


// (Requires SteamWorks)
// A SteamAPI key that will be used to check playtime
// Get your own at: https://steamcommunity.com/dev/apikey
// This is a sensitive key, don't share it!
// Needed to get the playtime or prime status
// -
// Default: ""
nda_steamapi_key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

// (Requires Discord API and SteamWorks)
// Discord integration with a webhook
// empty = disabled
// webhook url = enable
// -
// Default: ""
nda_discord "https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXX"

// Enable saving player values in a database.
// Will act as a cache, if a player doesn't want to keep is profile public, he can join once while it's public and it won't deny him in the future.
// 1 = enabled
// 0 = disabled
// Database config name: 'no_dupe_account'
// -
// Default: "1"
nda_database "1"

// (Requires Database)
// any integer = refresh players values if older than X minutes
// 0 = never refresh (recommended if you don't plan on using the DB for other reasons)
// NOTE: Player values will ALWAYS refresh if they are denied, but this will NOT count as a true full refresh
// -
// Default: "1440"
nda_database_refresh "1440"

// (Requires Database)
// any integer = players values are deleted if older than X days (using refresh as well is recommended)
// 0 = keep player values forever
// NOTE: Deleting really old values of players that don't play anymore is recommended
// -
// Default: "365"
nda_database_expire "30"

// (Requires SteamWorks)
// 0 = disabled
// 1 = check for VPNs or proxies, and send an in-game alert to admins if someone is potentially using one (and a discord message if setup)
// 2 = is a user check that fails is user has a VPN
// 3 = kick user
// -
// Default: "1"
nda_vpn "1"

// 0 = disabled
// any integer = is a user check that fails if his level is under this value. Keep in mind if someone gets his service medal he will go back to level 1
// -
// Default: "2"
nda_level "0"

// (Requires SteamWorks)
// 0 = disabled
// 1 = is a user check that fails if user is not prime (will only work if user paid the game) + nda menu
// 2 = only add an !nda menu displaying non-prime players
// -
// Default: "1"
nda_prime "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if he has less mins in playtime than asked or has private hours
// any negative integer = same as positive, but is not a check and will kick user
// -
// Default: "120"
nda_playtime "-2700"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if his steam level is under this value or his profile is private
// any negative integer = same as positive, but is not a check and will kick user
// -
// Default: "5"
nda_steam_level "0"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = is a user check that fails if his steam account age is newer than this value in minutes or his profile is private
// any negative integer = same as positive, but is not a check and will kick user
// &integer (ex: &60) = same as negative, but will not kick user if his profile is private
// -
// Default: "1576800"
nda_steam_age "-420"

// 0 = disabled
// 1 = is a user check that fails if he doesn't have any CS:GO coin/badge equipped
// 2 = kick user if he doesn't have any CS:GO coin/badge equipped (this is not recommended as a lot of players don't have a coin)
// -
// Default: "1"
nda_coin "0"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been VAC banned at least X times
// -
// Default: "0"
nda_bans_vac "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been Game banned at least X times
// -
// Default: "0"
nda_bans_game "1"

// (Requires SteamAPI Key)
// 0 = disabled
// 1 = kick player if he is community banned (spam, phishing, nudity...)
// These people will have private profiles and are unable to add friends or comment.
// 2 = send an in-game alert to admins if player is community banned (and a discord message if setup)
// -
// Default: "2"
nda_bans_community "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any integer = kick player if he has been banned at least X times (VAC+Game bans)
// -
// Default: "0"
nda_bans_total "1"

// (Requires SteamAPI Key)
// 0 = disabled
// any positive integer = send an in-game alert to admins (and a discord message if setup) if player has been VAC or Game banned X days ago or less
// any negative integer = same as positive integer, but instead of sending an alert, it will kick the player
// -
// Default: "5"
nda_bans_recent "-1"

// 0 = don't log
// 1 = log check approvals & refusals to server's console
// 2 = log check refusals to server's console
// -
// Default: "1"
nda_log "1" 
I believe that's it, check if the player has the requirements:
  • Steam account for at least 7 hours;
  • If you played the CSGO for at least 45 hours;
  • Check if the player has Prime Status;
If he has it all, he can log on to the server. If he fails any of these requirements, he is kicked.

And after he gets in he can leave the steam profile private again that he is no longer kicked.
Watch out, your only check is the prime check, however, due to current limitations, prime checks will ONLY work if you BOUGHT the game. If you got prime through leveling to level 21, it won't work! Please consider disabling nda_prime (and thus, all 'checks') and use sv_prime_accounts_only "1" instead

You can also disable nda_steam_age since it doesn't make any sense (you need to play at least 45h, so your account will always be older than 7h), your CPU and the Steam API will thank you

Else, everything seems fine
__________________

Last edited by azalty; 04-29-2021 at 18:03.
azalty is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 04-29-2021 , 18:14   Re: [CS:GO] No Dupe Account (1.4.3, 2021-04-10)
Reply With Quote #48

Quote:
Originally Posted by azalty View Post
Watch out, your only check is the prime check, however, due to current limitations, prime checks will ONLY work if you BOUGHT the game. If you got prime through leveling to level 21, it won't work! Please consider disabling nda_prime (and thus, all 'checks') and use sv_prime_accounts_only "1" instead

You can also disable nda_steam_age since it doesn't make any sense (you need to play at least 45h, so your account will always be older than 7h), your CPU and the Steam API will thank you

Else, everything seems fine
__________________
paulo_crash is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 04-30-2021 , 13:00   Re: [CS:GO] No Dupe Account (1.4.3, 2021-04-10)
Reply With Quote #49

Quote:
Originally Posted by azalty View Post
Watch out, your only check is the prime check, however, due to current limitations, prime checks will ONLY work if you BOUGHT the game. If you got prime through leveling to level 21, it won't work! Please consider disabling nda_prime (and thus, all 'checks') and use sv_prime_accounts_only "1" instead

You can also disable nda_steam_age since it doesn't make any sense (you need to play at least 45h, so your account will always be older than 7h), your CPU and the Steam API will thank you

Else, everything seems fine
So far so good, thanks for the help.

Just one thing now, to confirm.

Player has all the requirements to enter, connect and such, he can leave the steam profile private again or he will have a problem due to the verification that the plugin does in the database every X days.

PHP Code:
// (Requires Database)
// any integer = refresh players values if older than X minutes
// 0 = never refresh (recommended if you don't plan on using the DB for other reasons)
// NOTE: Player values will ALWAYS refresh if they are denied, but this will NOT count as a true full refresh
// -
// Default: "1440"
nda_database_refresh "1440"

// (Requires Database)
// any integer = players values are deleted if older than X days (using refresh as well is recommended)
// 0 = keep player values forever
// NOTE: Deleting really old values of players that don't play anymore is recommended
// -
// Default: "365"
nda_database_expire "30" 
__________________
paulo_crash is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Old 04-30-2021 , 15:17   Re: [CS:GO] No Dupe Account (1.4.3, 2021-04-10)
Reply With Quote #50

Quote:
Originally Posted by paulo_crash View Post
So far so good, thanks for the help.

Just one thing now, to confirm.

Player has all the requirements to enter, connect and such, he can leave the steam profile private again or he will have a problem due to the verification that the plugin does in the database every X days.

PHP Code:
// (Requires Database)
// any integer = refresh players values if older than X minutes
// 0 = never refresh (recommended if you don't plan on using the DB for other reasons)
// NOTE: Player values will ALWAYS refresh if they are denied, but this will NOT count as a true full refresh
// -
// Default: "1440"
nda_database_refresh "1440"

// (Requires Database)
// any integer = players values are deleted if older than X days (using refresh as well is recommended)
// 0 = keep player values forever
// NOTE: Deleting really old values of players that don't play anymore is recommended
// -
// Default: "365"
nda_database_expire "30" 
Great question! This one is answered in the Advanced part of the wiki:
https://github.com/azalty/sm-no-dupe...s#special-note

If someone equips a coin, and they remove it, the DB will store the last coin equipped, and the player will ALWAYS pass the coin check in the future, as long as his data isn't deleted.

Players highest csgo level will be stored, example: if someone is level 40, and then prestige, the DB will store 40 as level, meaning this player will ALWAYS pass the level check in the future, as long as his data isn't deleted.

This behaviour is the same for all the other methods: the best value will always be kept.


So, as long as their data doesn't expire (30 days for you), they will always keep the best values (old ones or new ones)
__________________
azalty is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:01.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode