oqyh / cs2-vote-goldkingz Goto Github PK
View Code? Open in Web Editor NEWSystem Voting System (Kick, Banned, Mute, Gag, Silent, Gamemode, Map, Vips) Cs2
System Voting System (Kick, Banned, Mute, Gag, Silent, Gamemode, Map, Vips) Cs2
its causing server to go mute mode randomly , some players cant hear other but they can talk , big mess going on
Hello!
If possible, make a parameter that indicates the duration of the ban in minutes
Hi,
I'm looking for a way to allow users play different modes on a game server.
All Game server modes can be !rcon exec
, see https://github.com/kus/cs2-modded-server#changing-game-modes
2024-04-20 20:40:01.325 +03:00 [EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Vote_GoldKingZ.VoteBanned.HandleMenuALL(CCSPlayerController Caller, ChatMenuOption option, Int32 TargetPlayersUserID) in C:\Users\oqyh\Documents\cs2-Vote-GoldKingZ\Vote Banned\VoteBanned.cs:line 1180
at Vote_GoldKingZ.VoteBanned.<>c__DisplayClass5_3.b__3(CCSPlayerController Caller, ChatMenuOption option) in C:\Users\oqyh\Documents\cs2-Vote-GoldKingZ\Vote Banned\VoteBanned.cs:line 413
at CounterStrikeSharp.API.Modules.Menu.BaseMenuInstance.OnKeyPress(CCSPlayerController player, Int32 key) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Menu/BaseMenu.cs:line 130
at CounterStrikeSharp.API.Core.Commands.CommandManager.HandleCommandInternal(Int32 playerSlot, IntPtr commandInfo) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Commands/CommandManager.cs:line 64
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span1 copyOfArgs, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span
1 copyOfArgs, BindingFlags invokeAttr)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference.b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 100
Is there a way to change game_mode game_type and reload the current map to apply the changes ?
Unfortunately, the plugin is currently still too laggy for me.
Tested on a modded Kuz Linux server with the Hide and Seek mode and the map Infernohideaseek. Other cards caused slightly less longer server response times. Furthermore, my observation was that with every additional function activated in the config, the server response time increases.
120.599999 UNEXPECTED LONG FRAME DETECTED: 66.47ms elapsed, 65.91ms sim time, 3 ticks, 7706..7708.
120.694851 UNEXPECTED LONG FRAME DETECTED: 94.85ms elapsed, 94.28ms sim time, 5 ticks, 7709..7713.
120.815040 UNEXPECTED LONG FRAME DETECTED: 120.19ms elapsed, 119.53ms sim time, 6 ticks, 7714..7719.
Excessive frame time of 120.19ms clamped. Acting as if the frame only took 100.00ms
120.923818 UNEXPECTED LONG FRAME DETECTED: 108.78ms elapsed, 108.27ms sim time, 6 ticks, 7720..7725.
Excessive frame time of 108.78ms clamped. Acting as if the frame only took 100.00ms
121.057598 UNEXPECTED LONG FRAME DETECTED: 133.78ms elapsed, 133.14ms sim time, 7 ticks, 7726..7732.
Excessive frame time of 133.78ms clamped. Acting as if the frame only took 100.00ms
121.168850 UNEXPECTED LONG FRAME DETECTED: 111.25ms elapsed, 110.68ms sim time, 6 ticks, 7733..7738.
Excessive frame time of 111.25ms clamped. Acting as if the frame only took 100.00ms
121.240432 UNEXPECTED LONG FRAME DETECTED: 71.58ms elapsed, 71.22ms sim time, 6 ticks, 7739..7744.
121.302142 UNEXPECTED LONG FRAME DETECTED: 61.71ms elapsed, 61.39ms sim time, 5 ticks, 7745..7749.
121.350852 UNEXPECTED LONG FRAME DETECTED: 48.71ms elapsed, 48.41ms sim time, 4 ticks, 7750..7753.
121.386033 UNEXPECTED LONG FRAME DETECTED: 35.18ms elapsed, 34.91ms sim time, 3 ticks, 7754..7756.
121.412232 UNEXPECTED LONG FRAME DETECTED: 26.20ms elapsed, 25.88ms sim time, 2 ticks, 7757..7758.
121.436107 UNEXPECTED LONG FRAME DETECTED: 23.88ms elapsed, 23.65ms sim time, 2 ticks, 7759..7760.
I think it would be a good idea to sort the players in vote lists by the votes they have. Thus, you won't have to look for a long time for the violator on the list, he will be first on the list.
After the number of votes reaches the required number, the plugins write that the player is banned, but he continues to play on the server. No errors. Plugin ver 1.0.9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.