Coder Social home page Coder Social logo

neatek / gamevoting Goto Github PK

View Code? Open in Web Editor NEW
27.0 5.0 14.0 1.49 MB

A simple plugin written in SourcePawn. Allows you to manage players on servers with the punishment of certain players through a general vote on the server.

Home Page: https://forums.alliedmods.net/showthread.php?t=193643

License: GNU General Public License v3.0

SourcePawn 25.74% Shell 0.05% C++ 72.43% Pawn 1.78%
gamevoting csgo css sourcepawn sourcemod neatek smx sourcemod-plugin sourcemod-plugins voting-system

gamevoting's Introduction

GameVoting 1.9.x

Light voting plugin Sourcemod.net for TF2, CSS, CSGO etc Supports: Sourcebans++, MaterialAdmin, Sourcemod (2020)

WebAdmin:

webadmin If you want to see in release WebAdmin for GameVoting you can donate. Release on 280$ reached, or you can buy it for your project 180$.

  1. Built-in protect against attacks (exclude DDOS, use hardware protection).
  2. With RestAPI.
  3. Easy to install - NO composer, NO other packages - only Unpack archive & import SQL.
  4. One database for all your servers - share mute, bans between servers.
  5. Dark / White Theme Switcher, Icons 😋
  6. API key will be automatically changed when you will install web-scripts.
  7. Based on Light Framework
  8. PHP7.3 or above && > MySQL5.5 or above
  9. Funny quotes in footer 👌

Install:

Replace addons folder Require: Sourcemod 1.10, if you use lower sm - recompile it on your version

Discord:

discord

Support:

Changes:

  • 04.08.2017 - StartVote feature. (global voteban - yes/no)
  • 07.08.2017 - Translations.
  • 07.08.2017 - Improvements.
  • 07.08.2017 - Bug fixes.
  • 20.08.2017 - Voteban reasons for "StartVote" feature.
  • 27.01.2020 - new Enum struct syntax. Support >SM1.10.x
  • 12.02.2020 - Reasons fixed.
  • 06.12.2020 - Reasons length must be more than 1 char.
  • 06.12.2020 - MACOREVERSION updated - 0.8.0
  • 06.12.2020 - Minimal required count of players for ban - 3.
  • 06.12.2020 - Detecting of ban systems improved.
  • 06.12.2020 - Removed some useless logs, added new usefull logs.

Config:

  • gamevoting_authid "1"
  • gamevoting_autodisable "0"
  • gamevoting_bots_enabled "0"
  • gamevoting_enable "1"
  • gamevoting_immunity_flag "a"
  • gamevoting_immunity_zflag "1"
  • gamevoting_logs "1"
  • gamevoting_only_teammates "0"
  • gamevoting_players "8"
  • gamevoting_startvote_delay "20"
  • gamevoting_startvote_enable "1"
  • gamevoting_startvote_flag ""
  • gamevoting_startvote_min "4"
  • gamevoting_voteban "1"
  • gamevoting_voteban_delay "20"
  • gamevoting_voteban_percent "80"
  • gamevoting_votekick "1"
  • gamevoting_votekick_delay "20"
  • gamevoting_votekick_percent "80"
  • gamevoting_votemute "1"
  • gamevoting_votemute_delay "20"
  • gamevoting_votemute_percent "75"

Located at: cstrike\cfg\sourcemod\Gamevoting.cfg After first start of server with plugin

gamevoting's People

Contributors

bara20 avatar cripix avatar frisasky avatar neatek avatar toakan avatar wasyady avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gamevoting's Issues

Assign to Flag and SourceComms intergration

Would you be able to add ConVars for GameVoting to assign to certain flag
e.g.
// Who do you want to assign Gamevoting to? Set "0" for everyone or "Admin Flag" for certain admin flags
// -
// Default: "0"
gamevoting_voters "r"

And would you also be able to add Sourcecomms integration?

Vote separate Access Flags

I have a question about your plugin. how kann i give maybe players the option to use votekick and votemute and only admins can access the option voteban ?

Disable plugin when admins on server

// Disable plugin when admins on server? (def:0)
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
gamevoting_autodisable "1"

What flags are needed to consider a player admin on the server?

In this case I would like to leave it activated for all voting, unless a player with the flag "b" enters the server, then the votes would be disabled.

Votemutes are not displayed in sourcebans

Votebans are entered into the Sourcebans database thus showing it on the bans page. Votemutes however are not entered into the Sourcebans database and are not shown on the comms page of a Sourcebans install.

If possible, mutes/gags/whatever should also be displayed with all relevant information just as bans are. Perhaps it needs to use the Sourcebans database?

Reasons dont work

I dont get any options to give reasons when I start a vote. No errors.

reasonfile:
Cheating Player
AFK Player
Toxic Player

Мут и Material Admin

Есть баг с совместимостью Material Admin.
Если человек был замучен админом, игроки могут написать на него votemute и мут сработает на нем, и по истечению votemut'a этот мут снимается. Можно ли как то оградить, или сделать проверку, если у человека есть мут, то votemute нельзя будет прописать ?

Vote Extend Map

I think it would be great to include a feature to vote for an extend of the map timelimit.

Player wants to extend the map. (1/4)

Implement voting system by menu

Implement menu voting system

HOW IT WORKS

Currently when players want to make a vote they do it by chat, example:

  • votekick ai chooses the player to kick and the other players have to do the same thing.

The new version would be, a player starts a vote, no matter what, instead of all players having to write in the chat to vote too, it would automatically open a menu, something like that CSGO already has to vote to expel, change the map , as the name of the player who started the vote and its target, then everyone would vote for this menu.

It would be interesting to create a CVAR to control this voting mode, if the player wants the current one he leaves 1 if he wanted the new voting system to change to0.

/ перед командой

Все еще имеется проблема с символом "/".
На сколько я понимаю введенная таким образом команда конфликтует с basevotes.smx

	RegAdminCmd("sm_votemap", Command_Votemap, ADMFLAG_VOTE|ADMFLAG_CHANGEMAP, "sm_votemap <mapname> [mapname2] ... [mapname5] ");
	RegAdminCmd("sm_votekick", Command_Votekick, ADMFLAG_VOTE|ADMFLAG_KICK, "sm_votekick <player> [reason]");
	RegAdminCmd("sm_voteban", Command_Voteban, ADMFLAG_VOTE|ADMFLAG_BAN, "sm_voteban <player> [reason]");
	RegAdminCmd("sm_vote", Command_Vote, ADMFLAG_VOTE, "sm_vote <question> [Answer1] [Answer2] ... [Answer5]");

voteban

you can add, voteban reasons?

Optionally make players specify a reason for votebanning someone. The most-selected reason is then logged when the ban takes effect.

Disable public votes

I turned it off but it doesn't work.

// Disable of enable public votes (def:1)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
gamevoting_startvote_enable "0"

Players can still be a Public vote

Restrict starting a vote to flag

Hi,

It would be cool to have a feature where only certain players, with flag "r" for example, are allowed to start a vote. But everyone else can vote yes or no, even if they do not have the flag "r".

So for example: a VIP with the flag "r" types !votemute and selects a player. Players are then prompted with a window:

_Do you want to mute "example"?

  1. Yes
  2. No_

They can press 1 or 2 inorder to vote.

No Ban Entry

Hi Neatek

Great Plugin but i have a problem. 1 player was Banned by voting, but gamevoting don't put it into sourcebans.

L 02/12/2020 - 16:12:14: [gv.smx] Player BorisBorisovski([U:1:491853136]) voted for ban RONALDO([U:1:848312288]). (7/8) L 02/12/2020 - 16:13:22: [gv.smx] Player madeinaustria([U:1:28577622]) voted for ban RONALDO([U:1:848312288]). (8/8) L 02/12/2020 - 16:13:22: [gv.smx] Player RONALDO([U:1:848312288]) was banned by voting. (Last voted player: madeinaustria)

Game: CS:S
SourceMod Version: 1.10.0.6453
Gamevoting Version: 1.9.0
Sourcebans Version: 1.4.11

Anmerkung 2020-02-12 171309

Error in translation

GameVoting/addons/sourcemod/translations/ru/phrases.GameVoting.txt

"GameVoting_antiflood"
{
"#format" "{1:s},{2:d}"
"en" "{1} Пожалуйста не флуди, подожди {2} сек."
}

"GameVoting_antiflood"
{
"#format" "{1:s},{2:d}"
"ru" "{1} Пожалуйста не флуди, подожди {2} сек."
}

Wrong translation file name

Hi, I have a problem with file phrases.gv.txt currently the name of the file has a wrong name - non-sourcemod standard. Could you please change the name to correct one 4ex: gamevoting.phrases.txt.
The main thing of filenames is consistency, I have gitignore file in SRCDS project so everything who ends with *phrases.txt will be always tracked.

Nice will be if the name of the plugin will be correct too, now we have gv but I guess best can be gamevoting.sp. Additional Gamevoting config filename can be the same like plugin name, so gamevoting.cfg

Start Vote

I think gamevoting_startvote_enable 1, dosn't working.

Error log:

L 08/12/2017 - 15:58:51: Info (map "de_inferno") (file "errors_20170812.log")
L 08/12/2017 - 15:58:51: [gv18.smx] Error! Folder /logs/gamevoting/ doesnt exists! Please, create it to enable logs.
L 08/12/2017 - 16:19:58: Error log file session closed.

The folder exists!

Win2008R2, SRCDS running with administrator permission.

[Идея] Запуск голосования по набору n кол-ва голосов

Не знаю наверное уже нет смысла тут что-то писать, вроде поддержка остановилась, но всё же.
Было бы хорошо сделать запуск голосования, когда определенное кол-во голосов наберется
Например:
Люди пишут voteban, как наберется 50% к примеру, запускается голосование забанить или нет игрока.

Error on client not valid

L 07/26/2020 - 21:26:50: [SM] Exception reported: Client 17 is not connected
L 07/26/2020 - 21:26:50: [SM] Blaming: basecomm.smx
L 07/26/2020 - 21:26:50: [SM] Call stack trace:
L 07/26/2020 - 21:26:50: [SM]   [0] GetClientName
L 07/26/2020 - 21:26:50: [SM]   [1] Line 183, basecomm/gag.sp::MenuHandler_GagTypes

GOTV

GameVoting (1.8.2dev)
Неплохо бы убрать GOTV из списка игроков.
20170505011503_1

Меню с вариантами ответа

Смотрю в новой версии, после первого проголосовавшего, появляется меню с вариантами да-нет.
Это конечно удобно, но чаще всего приводит к баловству и ложным наказаниям.
В предыдущих версиях для удачного наказания необходим голос каждого, с вводом команды в чате.
Именно не столь быстрый процесс, с обязательный вводом команды каждым игроком, помогал от поспешных решений игроков.
Цифры (1-2) используются для переключения оружия, как следствие ложные нажатия.

Ban Reason

Hi,

New Version Work Good, but the Ban Reason is really crap, see

"Gamevoting (Reason: Team Killing, votecaller: ¤R3D¤-¤F0X¤.tm)"

can you make this so

"Player name has been banned by Gamevoting. Reason: Team Killing" for other votes too pls Thx :)

Reason

I have last GameVoting 1.8.8, when players make voting there's no reason and in sourcebans it looks like this

Gamevoting (Kronos)(Empty reason)

Public voting is OFF and game is CS:S

[Feature Request] Add Vote Gag & Silence

Currently he already has the Vote for Mute, it would be interesting to put the vote for Gag & Silence.

  • Voting for Gag would be the Chat.
  • Voting for Silence would be Voice & Chat.

Checking the plugin's source file, I saw that the Gag & Silence option has already been commented.

[Feature Request] Team Based Vote Options

This is a feature request where if we select a cvar enabled like only team based kick option where it can show only Team Mates names in Kick option like real option in game.

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.