Raised This Month: $51 Target: $400
 12% 

Custom Votes Redux (v1.7 - 4/13/14)


Post New Thread Reply   
 
Thread Tools Display Modes
natrius
Junior Member
Join Date: Mar 2015
Old 03-17-2015 , 17:17   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #191

Actually i had to delete the " in the following lines, now it seems to work:

line 132
Code:
"command"        "sm_map {MAP_NAME}"
line 174
Code:
"command"        "sm_silence {TARGET_ID}"
natrius is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-17-2015 , 17:20   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #192

Quote:
Originally Posted by natrius View Post
Actually i had to delete the " in the following lines, now it seems to work:

line 132
Code:
"command"        "sm_map {MAP_NAME}"
line 174
Code:
"command"        "sm_silence {TARGET_ID}"
Make sure to download the update as well. Everything will be wrapped in quotes, but this ensures everything will work properly.
ReFlexPoison is offline
natrius
Junior Member
Join Date: Mar 2015
Old 03-17-2015 , 17:28   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #193

Well, i redownloaded all 3 files.
Still the mistake, but this time i just changed the lines from
"command" "sm_map "{MAP_NAME}"" --> "command" "sm_map {MAP_NAME}"and everything seems to work.
natrius is offline
Sdg
BANNED
Join Date: Mar 2014
Old 03-18-2015 , 10:27   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #194

ReFlexPoison:

żIs it very difficult to add the code to disable the plugin when an admin is online?

Last edited by Sdg; 03-18-2015 at 10:27.
Sdg is offline
CenT
Senior Member
Join Date: Aug 2009
Location: FRANCE
Old 03-25-2015 , 16:37   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #195

Hello,

I just put up your plugin on my CSGO server, there is a worry, votemute turns itself into question on a random player, while no players used...


Can you solve the problem?

I use sourcemod 1.7.0
No error log file

config file :

Quote:
// Custom Votes Redux
// By: ReFlexPoison
//
// Thank you for downloading Custom Votes Redux. If you like my work and want to help out send me a donation. https://forums.alliedmods.net/member.php?u=149090
//
// For full plugin documentation, go to: https://forums.alliedmods.net/showthread.php?p=2097623
//
// How to edit this file: (Not all values will effect every type of vote. Ex: "currentmap" won't change anything in "players" type votes)
//
// "Custom Votes" <-- Leave this alone
// { <-- Add all votes after first bracket (Leave this alone)
// "Say something funny!" <-- Name of vote
// {
// "type" "list" <-- Type of vote (Valid types: players, map, list, simple)
// players - Populates the vote with a list of the online players
// map - Populates the vote with a list of maps from a specific map list
// list - Populates the vote with a custom list of choices
// simple - Doesn't populate the vote with anything
//
// "vote" "1" <-- Determine if a vote is called to determine the result of the selection, or if each selection is chosen manually by the players
// "cvar" "sm_cvar" <-- Control variable being changed
//
// "options" <-- These are your list options
// {
// "lol" "LOL" <-- Option name: lol | Option result: LOL
// "rofl" "ROFL" <-- Option name: rofl | Option result: ROFL
// }
//
// "override" "sm_lol" <-- Admin override (Use this with admin_overrides.cfg to prohibit access from specific players)
// "immunity" "0" <-- Admins with equal or higher immunity are removed from the vote
//
// "delay" "60" <-- Delay in seconds before players can cast a selecting after the map has changed
// "cooldown" "5" <-- Delay in seconds before players can vote again after casting a selection
// "team" "0" <-- Restricts players to only casting selections on team members
// "bots" "0" <-- Allows/disallows casting selections on bots
// "ratio" "0.6" <-- Ratio of players required to cast a selection
// "multiple" "0" <-- Allow/disallow players from casting a selection on more than one option
// "minimum" "4" <-- Minimum votes required for the vote to pass (Overrides ratio)
// "maxcalls" "3" <-- Maximum times a player can cast a selection (0 = No Limit)
// "maxpasses" "3" <-- Maximum amount of times the vote can be passed
// "command" "sm_csay {OPTION_RESULT}" <-- Command(s) ran when a vote is passed
//
// "start_notify" "Started vote. <-- Printed to everyone's chat when a player starts a vote
// "call_notify" "Voted for {OPTION_NAME}. <-- Printed to everyone's chat when a player casts a selection
// "pass_notify" "Vote passed!" <-- Printed to everyone's chat when the vote passes
// "fail_notify" "Vote failed!" <-- Printed to everyone's chat when the vote fails to pass
//
// "maplist" "default" <-- List of maps to populate the selection list (See maplist.cfg)
// "currentmap" "0" <-- Allows/disallows casting selections on the current map
// "recentmaps" "3" <-- How many recent maps will be removed from the vote selections
//
// "chattrigger" "vote" <-- Chat trigger to open the vote selections (Do not include ! or / in the trigger)
// } <-- Leave this alone
// } <-- Leave this alone
//
// Formatting: Remember to add quotes as needed
//
// Place these in command, call_notify, pass_notify to your liking
// {VOTE_AMOUNT} - Amount of votes called for that item
// {VOTE_REQUIRED} - Required vote calls for that vote to pass
//
// {VOTER_INDEX} - Voter client index
// {VOTER_ID} - Voter user id
// {VOTER_STEAMID} - Voter steam id
// {VOTER_NAME} - Voter name
//
// {TARGET_INDEX} - Target client index
// {TARGET_ID} - Target user id
// {TARGET_STEAMID} - Target steam id
// {TARGET_NAME} - Target name
//
// {MAP_NAME} - Map name
// {CURRENT_MAP_NAME} - Current map name
//
// {OPTION_NAME} - Option name
// {OPTION_RESULT} - Option result
//
// {On|Off} - Control variable is On or Off
// {on|off} - Control variable is on or off
//
// {Yes|No} - Voter selected Yes or No
// {yes|no} - Voter selected yes or no
//
// Formatting Examples:
//
// "call_notify" "{olive}[SM] {VOTER_NAME}{default} voted to kick {green}{TARGET_NAME}{default}."
// "command" "kickid {TARGET_ID};sm_csay Kicked {TARGET_NAME}"
//

"Custom Votes"
{
//"Set map time"
//{
// "type" "list"
// "vote" "1"
// "ratio" "0.6"
// "minimum" "0"
// "command" "mp_timelimit {OPTION_RESULT}"
// "options"
// {
// "15 minutes" "15"
// "30 minutes" "30"
// "45 minutes" "45"
// "60 minutes" "60"
// }
// "start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to set the map time to {OPTION_NAME}."
// "call_notify" "[SM] Vote cast for {yes|no}."
// "pass_notify" "[SM] Vote passed."
// "fail_notify" "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
// "chattrigger" "votemaptime"
//}
//"Turn all talk {on|off}"
//{
// "type" "simple"
// "vote" "1"
// "ratio" "0.6"
// "minimum" "4"
// "command" "sv_alltalk {on|off}"
// "cvar" "sv_alltalk"
// "start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to turn all-talk {on|off}."
// "call_notify" "[SM] Vote cast for {yes|no}."
// "pass_notify" "[SM] Vote passed."
// "fail_notify" "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
// "chattrigger" "votealltalk"
//}
//"Change the map"
//{
// "type" "map"
// "vote" "1"
// "ratio" "0.5"
// "minimum" "4"
// "command" "sm_map "{MAP_NAME}""
// "maplist" "default"
// "recentmaps" "3"
// "currentmap" "0"
// "start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to change the map to {MAP_NAME}."
// "call_notify" "[SM] Vote cast for {yes|no}."
// "pass_notify" "[SM] Vote passed."
// "fail_notify" "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
// "chattrigger" "votemap"
//}
"Kick player"
{
"type" "players"
"vote" "1"
"minimum" "4"
"ratio" "0.6"
"command" "sm_kick {TARGET_NAME}"
"start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to kick {TARGET_NAME}."
"call_notify" "[SM] Vote cast for {yes|no}."
"pass_notify" "[SM] Vote passed."
"fail_notify" "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
"chattrigger" "votekick"
}
"Ban player"
{
"type" "players"
"vote" "1"
"minimum" "4"
"ratio" "0.8"
"command" "sm_ban {TARGET_ID}"
"start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to ban {TARGET_NAME}."
"call_notify" "[SM] Vote cast for {yes|no}."
"pass_notify" "[SM] Vote passed."
"fail_notify" "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
"chattrigger" "voteban"
}
"Mute player"
{
"type" "players"
"vote" "1"
"minimum" "4"
"ratio" "0.6"
"command" "sm_silence "{TARGET_ID}""
"start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to mute {TARGET_NAME}."
"call_notify" "[SM] Vote cast for {yes|no}."
"pass_notify" "[SM] Vote passed."
"fail_notify" "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
"chattrigger" "votemute"
}
}
CenT is offline
Creampuffyness
Senior Member
Join Date: Jun 2009
Old 03-25-2015 , 16:40   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #196

Cent,
We use {TARGET_NAME} and it works fine.

Code:
"Mute player"
	{
		"type"			"players"
		"vote"			"1"
		"minimum"		"4"
		"immunity"		"5"	
		"ratio"			"0.6"
		"command"		"sm_silence {TARGET_NAME} Votemuted"
		"start_notify"	"[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to mute {TARGET_NAME}."
		"call_notify"	"[SM] Vote cast for {yes|no}."
		"pass_notify"	"[SM] Vote passed."
		"fail_notify"	"[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
		"chattrigger"	"votemute"
	}
__________________
Creampuffyness is offline
gordone
Junior Member
Join Date: Apr 2015
Old 05-19-2015 , 13:41   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #197

Hello,
I hope somebody understand what goes wrong on my sever
I`m running cs source dedicated in ubuntu.

I have downloaded (page one) and copied them to correct folders
customvotes.phrases.txt
customvotes.cfg
customvotes-redux.smx


When I try to say list, map or player when I play on the server nothing happens...

I got some errors when I start up th e server after I added the three files:

(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/customvotes.cfg
(*Custom Votes*), (*Change the map*), (*{*), (*options*),
L 05/19/2015 - 199:29: [customvotes-redux.smx] Configuration file addons/sourcemod/configs/customvotes.cfg loaded.


I have somebody have time to look at it and come with some feedback, this addon can make by day or us
gordone is offline
Marverlous
Senior Member
Join Date: May 2013
Old 05-19-2015 , 17:30   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #198

Hello, I'm trying to use this in conjunction with your Round Timer plugin so that when the plugin's timer reach 0, it start the custom vote.

I tried doing this using the cvar: sm_roundtimer_commands "say customvotetrigger"

But when the timer ran out, the Round Timer plugin simply said "customvotetrigger" in chat, but no vote was initiated.

Some help would be greatly appreciated.

Thank you
__________________

Last edited by Marverlous; 05-20-2015 at 02:37.
Marverlous is offline
Nightcs
New Member
Join Date: Jan 2015
Location: Sao Paulo - SP
Old 05-20-2015 , 17:46   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #199

this plugin is working well in csgo
Nightcs is offline
gordone
Junior Member
Join Date: Apr 2015
Old 05-21-2015 , 12:13   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #200

Do somebody have inputs to me issue above?

CS Source Dedicated on ubuntu, I have copied the files to correct folders without edite the files..
Shall it not working automatically ?

Last edited by gordone; 05-21-2015 at 12:13.
gordone 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:02.


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