GithubHelp home page GithubHelp logo

profile-status's Introduction

Welcome to my GitHub page!

I'm a software developer, currently working as a .NET Engineer.
I love hosting and contributing to open-source software, getting my hands on the latest gadgets and learning new frameworks to work with.

Among my repositories (and my TF2 community's organization Electric Servers) you will mainly find an extensive amount of SourceMod plugins, websites, applications and projects like SPCode and my portfolio/blog website.

profile-status's People

Contributors

blueberryy avatar crashzk avatar fejmek avatar impact123 avatar maxijabase avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

profile-status's Issues

CS:GO does not support morecolors.inc

CS:GO does not support hex colors from morecolors library, but that’s not all.
You should include the Regex library in the plugin directly, and not through the morecolors library.

Hours check bug

i have disabled hours check in config but the plugin still kicks players with this error
device<35><STEAM_1:1:227327333><>" disconnected (reason "Error while retrieving your hours! Make sure they're public"
also the player"s profile is already public

Option of Checking Hours & VAC

I would like to know how the plugin works with the database.

In this case, I configured to kick all players that do not have at least 120 hours, so far so good.

My question would be, after a player passes this check, is it saved in the database? Can he leave his profile private again that he is no longer kicked?

And even though his profile is private, if he takes VAC he is still kicked from the server if he tries to connect even though he has the minimum hours, correct?

Change access for players who are allowed to use the sm_ps command

sm_ps <hours|bans> add <STEAMID64> - Add user to the whitelist. For example: !ps hours add 76561198179807307
sm_ps <hours|bans> remove <STEAMID64> - Remove a user from the whitelist. For example: !ps bans remove 76561198179807307
sm_ps <hours|bans> check <STEAMID64> - Check if a user is in the whitelist. For example: !ps hours check 76561198179807307
sm_ps whitelist - Opens whitelist menu.

For the player to use these commands he needs to have access to the ADMFLAG_GENERIC privileges, I recommend changing toADMFLAG_CHEATS so it is easier to control which players have access to add players to the whitelist.

Improved Game Bans

I would like to understand how this amount works, the bans that are applied in the game, on official servers steam/csgo, are registered?

// Amount of game bans tolerated until prohibition (0 for zero tolerance).
// -
// Default: "5"
sm_profilestatus_game_bans "5"

Because I didn't understand how a player can take 5 Game Bans.

And if I would have to disable this option, that is, it doesn't matter how many Game Bans it has, even then it can connect to the server.

I just want to forbid you to connect if you have a VAC Ban on your account.

Translation file errors

There are some errors, or information missing from the translation files.

"Command Generic Usage"
	{
		"en" "{green}[PS]{default} Usage: sm_ps <hours|bans> <add|remove|check> <STEAMID64>"
		"es" "{green}[PS]{default} Uso: sm_ps <add|remove|check> <STEAMID64>"
		"pt" "{green}[PS]{default} Uso: sm_ps <add|remove|check> <STEAMID64>"
	}

Implement MySQL database support

I have several servers, I wanted to make the players' time checking global.

That is, when a player is added to the database it will go on all servers.

Error GetClientUserId when using commands on the server console

I went to add a player to the hours whitelist to enter and showed the following error on the server console:

L 06/27/2020 - 14:16:37: [SM] Exception reported: Client index 0 is invalid
L 06/27/2020 - 14:16:37: [SM] Blaming: profilestatus.smx
L 06/27/2020 - 14:16:37: [SM] Call stack trace:
L 06/27/2020 - 14:16:37: [SM]   [0] GetClientUserId
L 06/27/2020 - 14:16:37: [SM]   [1] Line 875, C:\Users\Usuario\Documents\Github\profile-status\scripting\profilestatus.sp::Command
L 06/27/2020 - 14:16:37: [SM]   [2] Line 851, C:\Users\Usuario\Documents\Github\profile-status\scripting\profilestatus.sp::Command_Generic

I tried the command as follows sm_ps hours add 76561198814491906

This error happened when I tried to use it directly on the server console, I did not connect to the server to add in the case.

[EDIT]
I have not tested with the other options, I believe that you should check all <hours|bans|level> option.

Implement option to separate servers in the database | server_id

Implement the option to separate the servers in the database.

Currently I have several servers focused on casual and others competitive. Casual servers put that at least 45 hours in the game to enter and in competitive servers 110 hours in the game to enter.

Then start the problem, if the player does not have 110 hours in the game to enter the competitive servers, but he already has 45 hours to enter the casual servers, if he enters a casual server he is added to the database and with that he can enter then on competitive servers even without having 110 hours.

The solution would be to implement some way of separating the servers within the database, something like server_id is the same as in SourceBans++.

AI would configure each server with an ID and check only that server on the whitelist.

Was that possible?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.