VoteKick

Moved

Total Downloads: 195 - First Release: Jun 8, 2017 - Last Update: Jun 8, 2017

5/5, 1 like
  1. Kappasaurus submitted a new resource:

    VoteKick - Let players with permission call votes to kick others.

    Read more about this resource...
     
  2. Kappasaurus updated VoteKick with a new update entry:

    1.0.1

     
    Last edited by a moderator: Jun 8, 2017
  3. Great plugin Kappasaurus! Could this be modded to make it votemute to avoid players being ganged up upon and excluded from the game?
     
  4. Nice plugin, few issues though.

    OnUserDisconnected does not check if the target disconnected. It should also set the target to null afterwards

    Code:
            void OnUserDisconnected(IPlayer player)
            {
                if (target != null && activeVote && player.Id == target.Id)
                {
                    server.Broadcast(lang.GetMessage("Target Disconnected", this));
                    activeVote = false;
                    voted.Clear();
                    target = null;
                }
            }
    
    Target Not Found checks if the player is not connected, instead of the target

    Code:
    if (target == null || !player.IsConnected)
    timer.Once should be stored in a variable so it can be destroyed when you set activeVote to false. put 'Timer voteTimer;' at the top of the plugin

    Code:
                voteTimer = timer.Once(600f, () =>
                {
                    if (!activeVote)
                        return;                activeVote = false;
                    server.Broadcast(lang.GetMessage("Timed Out", this));
                    voted.Clear();
                });
    
     
  5. Kappasaurus updated VoteKick with a new update entry:

    1.0.2

     
    Last edited by a moderator: Jun 8, 2017
  6. Wulf

    Wulf Community Admin

    You should be a bit more descriptive with change logs. ;)
     
  7. thes the grant command i tried James: grant admin James votekick.able
     
  8. I would love to see an option to list steamids that can't be kicked by others using this mod.

    Actually it might be good to allow setting various groups for this. If someone is in group1 or group2, they can't be kicked.

    A good example is if you have people in a VIP group, you don't want them to be kicked.
     
    Last edited by a moderator: Aug 9, 2017
  9. Could you add votekick requests and votes into the console please? Sometimes it's important to track down what happened in relation to votekicks.

    Thanks!