[IMG]https://4.bp.blogspot.com/-A9ccWmB0eEE/WPPQ3oVD5gI/AAAAAAAACUw/eRlA_xA7wmkbohwFyKBIDFudvR3CLF0UACLcB/s1600/votekick.png[/IMG]
No edgy name, no big promises and no complex systems.
This is just it, a simple votekicking system so players in your server can kick griefers when admins are not online.
Open the menu by saying !votekick, vote yes by saying !yes and no by saying !no. Whenever you call a vote, you'll have a cooldown. If you get voted off, you'll get banned for some time depending on the configuration.
A vote will be passed only if half of the server has voted and there are more Yes votes than No votes.
This addon has two main configurations:
- The amount of minutes a player is banned when voted off.
- The amount of seconds that a player has to wait until they can call another vote.
[B]IMAGES[/B]
[IMG]https://2.bp.blogspot.com/-8xeQKZYrIwU/WPPRa6fBxbI/AAAAAAAACU0/CroDhBFnw5wC3ZkN9bsdNpeNXSNDv4TlACLcB/s1600/img1.png[/IMG]
[IMG]https://3.bp.blogspot.com/-VZOnms7t9Zw/WPPRbG5f1pI/AAAAAAAACU8/9zY4i3rUAdIebp_dKhdmpBGP8mIdWcmnACLcB/s1600/img2.png[/IMG]
[IMG]https://1.bp.blogspot.com/-M_5quJhCWVE/WPPRaz4wLAI/AAAAAAAACU4/tz0-vO7OH1YCLtdpGhYLPv4eJVjzvvK7ACLcB/s1600/img3.png[/IMG]
[IMG]https://1.bp.blogspot.com/-uW1LV2tzcaM/WPPRba1hm7I/AAAAAAAACVA/XIWak2FMzr81PjIU7qMva6PVoWDIVh81QCLcB/s1600/img4.png[/IMG]
[IMG]https://2.bp.blogspot.com/-Mu3suVlPecU/WPPRbVWeG2I/AAAAAAAACVE/B3lEJ2yG5EU7I8ltS7NU-ZwwK8hkfFBZgCLcB/s1600/img5.png[/IMG]
[IMG]https://2.bp.blogspot.com/-sEEdDuz1ogY/WPPRbc7-6YI/AAAAAAAACVI/9_YCMWsnZsI-AFEj5SqhdJzzAW3rakvewCLcB/s1600/img6.png[/IMG]
[B]WORKSHOP PAGE[/B]
[URL="http://steamcommunity.com/sharedfiles/filedetails/?id=907370751"]http://steamcommunity.com/sharedfiles/filedetails/?id=907370751[/URL]
[B]SOURCE CODE[/B]
[URL="https://bitbucket.org/AlbertoBC/simple-votekick-system"]https://bitbucket.org/AlbertoBC/simple-votekick-system[/URL]
I'll be happy to get reports of any bugs found so I can fix them!
That yes/no meter is pretty cool.
[QUOTE=wauterboi;52113296]That yes/no meter is pretty cool.[/QUOTE]
Agreed i like this as well as the in-game configuration very smart! Nice work!
[url]https://bitbucket.org/AlbertoBC/simple-votekick-system/src/60a385a2ce129029fe7a445a1c9001e20d10d281/lua/autorun/votekick.lua?at=master&fileviewer=file-view-default#votekick.lua-30[/url]
Why not use net.Broadcast?
[QUOTE=xbeastguyx;52114130][url]https://bitbucket.org/AlbertoBC/simple-votekick-system/src/60a385a2ce129029fe7a445a1c9001e20d10d281/lua/autorun/votekick.lua?at=master&fileviewer=file-view-default#votekick.lua-30[/url]
Why not use net.Broadcast?[/QUOTE]
Never heard of it, I'll go check it out!
[editline]17th April 2017[/editline]
For those interested: I've been able to upload the addon to the workshop, the link is right above!
[QUOTE=AlbertoBC;52115365]Never heard of it, I'll go check it out!
[editline]17th April 2017[/editline]
For those interested: I've been able to upload the addon to the workshop, the link is right above![/QUOTE]
net.Broadcast() does exactly what you are doing in the for loop it sends to everyone on the server
[QUOTE=XxLMM13xXx;52116331]net.Broadcast() does exactly what you are doing in the for loop it sends to everyone on the server[/QUOTE]
OR send can also take a [URL="http://wiki.garrysmod.com/page/Category:CRecipientFilter"]CRecipientFilter[/URL] and add all players. But it is nice to be able to send it to specific players with little looping.
[QUOTE=andreblue;52116491]OR send can also take a [URL="http://wiki.garrysmod.com/page/Category:CRecipientFilter"]CRecipientFilter[/URL] and add all players. But it is nice to be able to send it to specific players with little looping.[/QUOTE]
But he is just calling all players on the server so why not just use one work Broadcast?
[QUOTE=XxLMM13xXx;52117386]But he is just calling all players on the server so why not just use one work Broadcast?[/QUOTE]
More then one way to skin a deer man. lol
[QUOTE=andreblue;52117487]More then one way to skin a deer man. lol[/QUOTE]
I dont know much about the CRecipientFilter, but just from the wording it self, its a 'filter', he doesn't need a filter to do what he does, he just needs to send it to all of the players, the ONLY normal way to do is net.broadcast, it is it's purpose.
[QUOTE=XxLMM13xXx;52117386]But he is just calling all players on the server so why not just use one work Broadcast?[/QUOTE]
net.Broadcast literally just loops net.Send internally iirc, so either way works. It doesn't really matter
[QUOTE=Kevlon;52118847]net.Broadcast literally just loops net.Send internally iirc, so either way works. It doesn't really matter[/QUOTE]
Sure, but if you already have net.Broadcast, why not use it? It's neater
Its not just neater, the point of these functions is not because you wont be able to do them your self, but to make a standard, so people can review your addon and quickly understand whats going on.
votekicking is abused easily
[QUOTE=bloodmasked;52129006]votekicking is abused easily[/QUOTE]
But it's better than having a single griefer screwing the fun for everyone else. Also forcing x% of the population of the server to vote you can avoid having minorities kicking people.
It's true that it can be abused (basically having few people in an empty server kicking others, but that would be griefing too -- as in having for example 3 people harassing 1 in an empty server -- and in that case it would require admin action) but it's better to try something than doing nothing.
have u played csgo? i literally get banned from it because my own team are trolls and want to kick people because its funny
[QUOTE=bloodmasked;52135405]have u played csgo? i literally get banned from it because my own team are trolls and want to kick people because its funny[/QUOTE]
Yes I had and most of the times that THAT specific thing happens it's usually when you queue in MM with a premade of 4, which is not always the case. I haven't seen that many abusive kicks in casual games or even on normal MM if you are with a mixed party.
Sorry, you need to Log In to post a reply to this thread.