night757 / afkmanager Goto Github PK
View Code? Open in Web Editor NEWA simple AFK Manager plugin for CS2.
A simple AFK Manager plugin for CS2.
I think there is still a mistake. For me the anti-camp uses the AFK timer and not the AntiCampWarnPlayerEveryXSeconds timer. Regards Mafel
After uploading, the plugin throws errors
System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
at System.ThrowHelper.ThrowInvalidOperationException_ConcurrentOperationsNotSupported()
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
at CounterStrikeSharp.API.Modules.Memory.Schema.GetSchemaOffset(String className, String propertyName) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Memory/Schema.cs:line 57
at CounterStrikeSharp.API.Modules.Memory.Schema.GetPointer[T](IntPtr pointer, String className, String memberName) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Memory/Schema.cs:line 114
at CounterStrikeSharp.API.Core.CEntityIdentity.get_Next() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Objects.g.cs:line 9413
at CounterStrikeSharp.API.Utilities.FindAllEntitiesByDesignerName[T](String designerName)+MoveNext() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Utilities.cs:line 64
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at AFKManager.AFKManager.AfkTimer_Callback() in D:\servers\lua\AFKManager\AFKManager\AFKManager.cs:line 168
at InvokeStub_Action.Invoke(Object, Object, IntPtr*)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
If you take a bot, it immediately starts going on a timer.
Also if I flip to spectra, I do not die, but just move to an unknown team and continue walking, I can take a weapon and kill, but I am not visible.
Chat Prefix Chat Warning Kick Message
ChatPrefixChatMoveKickMessage
its not kicking players
and how to not kick spectator i just want the plugin to switch pplayers to spec
As of retake servers its only really the CT's which should be kicked if stood still not rly T's.
Hi,
it will be good if it will be posible doesn't count BOTs to count players.
When you set "SpecKickMinPlayers": 4,
and 2 players and 2 BOTs are on server, you lost player while he can be still in spectate.
Players checking how many plaers are on the server and then connect. Server can by this way filled earlier.
reupload it organized ,like file called addons and we just put the folder in server , i dont know where to put them files
I'm connecting to the server and going straight in to spec, but even though I'm moving between the players' cameras, typing in chat, etc., I'm kicked off the server for still being AFK.
Plugin work all ok, but when plugin kick someone or move to spectators, he leaves ghost which is located in textures or on the map, and can be observed when switching players
Would it be possible to implement translation support based on CSSharp, for multiple languages in this case?
I would like to make several languages available for messages due to the location of some players, so everyone can view the translations based on the language of their game.
Would it be possible to implement an option for players to be kicked/moved even during the warmup? An option to activate and deactivate this feature if we want.
could this be possible? (myb added to cfg to choose) nice plugin btw, great job
It would be possible to make all players pass the check to be moved to SPEC if they are AFK, but for them to be kicked from the server even if they are AFK from SPEC only if the player is not on the whitelist.
In other words, all players can be moved to SPEC if they are AFK and if they continue AFK in SPEC, if the player is not on the whitelist, he will be kicked from the server.
Punishment system with sum for carrying out actions.
Currently you would have these options:
Punishment options (0 - kill | 1 - kill + move to spectator | 2 - kick)
It would work like this 1 + 2 = 3
That is, the user would receive Kill + Move to Spectator + Kick later if he continues AFK from SPEC.
Testing here I haven't been able to reproduce this way yet.
hey just wanted to ask does the plugin only check for players in spec that were moved for afk, or also cheks for players who joined spec on their own?
Hey could check what is wrong with this feature and if its fixable?
plugin no longer works after the newest CSSHARP update. Was working fine and now it does nothing
seems to load fine, but nothing happens
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.