Raised This Month: $32 Target: $400
 8% 

[REQ] Default votekick for CS:GO (for vip)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Trum
AlliedModders Donor
Join Date: Jan 2017
Old 12-17-2018 , 06:06   [REQ] Default votekick for CS:GO (for vip)
Reply With Quote #1

Hi!

I need a plugin that can votekick with the regular votekick for csgo, in the top left corner where you press f1 or f2

Features:

> Only for vip (flag "a")
> You can only do it 2 times per match
> I have competitive servers so the result need's to be 4 yes to kick someone
Trum is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-20-2018 , 12:10   Re: [REQ] Default votekick for CS:GO (for vip)
Reply With Quote #2

Quote:
Originally Posted by Trum View Post
Hi!

I need a plugin that can votekick with the regular votekick for csgo, in the top left corner where you press f1 or f2

Features:

> Only for vip (flag "a")
> You can only do it 2 times per match
> I have competitive servers so the result need's to be 4 yes to kick someone
A place to start is here:
https://wiki.alliedmods.net/Counter-...e_UserMessages

Also what you need to do yourself ( I forgot if I'm in request forum or scripting help but it'll help all )
https://developer.valvesoftware.com/...of_CS:GO_Cvars

The list of cvars allows me to CTRL + F this cvar: sv_vote_quorum_ratio

The cvar should be set to 0.8 which means 80% of voters needed to succeed ( 4 divided by 5 = 0.8 )
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-21-2018 , 00:59   Re: [REQ] Default votekick for CS:GO (for vip)
Reply With Quote #3

Quote:
Originally Posted by eyal282 View Post
A place to start is here:
https://wiki.alliedmods.net/Counter-...e_UserMessages

Also what you need to do yourself ( I forgot if I'm in request forum or scripting help but it'll help all )
https://developer.valvesoftware.com/...of_CS:GO_Cvars

The list of cvars allows me to CTRL + F this cvar: sv_vote_quorum_ratio

The cvar should be set to 0.8 which means 80% of voters needed to succeed ( 4 divided by 5 = 0.8 )
Bearing in mind that I haven't touched the CS:GO voting system in at least 3 years....

You'd probably want to hook the callvote console command unless you really want to reimplement the entire vote system in a plugin (the NativeVotes plugin has an API for this, but it's probably out of date since I haven't touched it in years).

Of course, you have to check which vote is being called before you decide to handle it. As I recall, the first argument to callvote will be the vote type with "Kick" being the kick vote type. The second argument is the userid that the person is trying to start a vote to kick.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Trum
AlliedModders Donor
Join Date: Jan 2017
Old 12-22-2018 , 07:27   Re: [REQ] Default votekick for CS:GO (for vip)
Reply With Quote #4

Quote:
Originally Posted by eyal282 View Post
A place to start is here:
https://wiki.alliedmods.net/Counter-...e_UserMessages

Also what you need to do yourself ( I forgot if I'm in request forum or scripting help but it'll help all )
https://developer.valvesoftware.com/...of_CS:GO_Cvars

The list of cvars allows me to CTRL + F this cvar: sv_vote_quorum_ratio

The cvar should be set to 0.8 which means 80% of voters needed to succeed ( 4 divided by 5 = 0.8 )
Im looking for someone to code a plugin, i can 't code myself.
Trum is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-22-2018 , 10:28   Re: [REQ] Default votekick for CS:GO (for vip)
Reply With Quote #5

these are from csgo
Code:
] listissues 
---Vote commands---
callvote Kick <userID>
--- End Vote commands---
---Vote commands---
callvote ChangeLevel <mapname>
callvote ScrambleTeams
callvote SwapTeams
--- End Vote commands---
nvm
__________________
Do not Private Message @me

Last edited by Bacardi; 12-22-2018 at 14:25. Reason: updated
Bacardi is offline
zwolofmeister
Member
Join Date: Aug 2018
Old 12-23-2018 , 12:32   Re: [REQ] Default votekick for CS:GO (for vip)
Reply With Quote #6

Ill test this out later
zwolofmeister is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode