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

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
jameless
Veteran Member
Join Date: Jan 2010
Old 11-21-2010 , 11:12   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #691

@JohnnyAjax: Can you post the vote that you are using for this?

@ummja: Just use "cmd" "sm_execcfg {name of cfg file}"
jameless is offline
ummja
Senior Member
Join Date: Sep 2010
Old 11-21-2010 , 13:37   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #692

If I were typing that as an exact line of my code...

I'd do it like this...?

"Command" "sm_execcfg allhoming.cfg"

The .cfg is called allhoming.cfg

???

How would I write the EXACT code if you can take the time to write it?

So I can just plug it into a notepad and save it as a .cfg file?
ummja is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 11-21-2010 , 13:46   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #693

You'll want to clean this up to suit your exact needs but this is a generic vote to achieve what you are looking for.

Code:
"Votes"
{
	"allhoming"
	{
		"title"		"Turn on all homing?"
		"type"		"confirm"
		"trigger"
		{
			"command"	"votehoming"
			"notice"	"%u wants to initiate an all homing vote"
			"count"		"2"
		}
		"cmd"	"sm_execcfg allhoming.cfg"
	}
}
jameless is offline
ummja
Senior Member
Join Date: Sep 2010
Old 11-21-2010 , 14:18   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #694

How do you mean clean it up?

And to execute the cfg that turns it off I should just sub it in where necessary??
ummja is offline
ummja
Senior Member
Join Date: Sep 2010
Old 11-21-2010 , 16:46   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #695

How would I write it if I want it so only admins with sm_vote can call the vote?
ummja is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 11-21-2010 , 17:43   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #696

@ummja: I mean clean it up like I made it so only 2 people have to type in votehoming for a vote to start where people vote yes/no. You can change that to whatever you want. Yes to execute the off just sub in the other cfg and change it to say what you want. Add in the line "admin" "sm_vote" to make it so only those guys can start the vote.
jameless is offline
ummja
Senior Member
Join Date: Sep 2010
Old 11-21-2010 , 19:52   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #697

Thank you for your help. Will try when I get home and tell you if it works.
ummja is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 12-04-2010 , 07:45   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #698

Dunno if this plugin is still supported, but I got a problem that bots are allowed to vote too.

If this plugin isn't supported anymore I'll may fix this and re-release it.


Edit: my fault min is 4 players. so it works!
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]

Last edited by Chanz; 12-04-2010 at 07:59.
Chanz is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 12-04-2010 , 08:58   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #699

Kk yea the plugin works, but if you feel inclined to work on it there are some features that could be added to it to make it even better. People have asked for a way to block out 1 & 2 in the votes. Also perhaps for a timer between commands could be cool. Anyhow no pressure just saying that if you are willing to work on it I am sure we would all appreciate it.
jameless is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 12-04-2010 , 09:20   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #700

hm I bumped into another problem but solved it somehow.
If sm_cvote_adminonly is 1 then the "admin" parameter in the config files is ignored.

I edited the plugin to work always only with "admin" if the adminonly cvar is 1.
So all commands that should still be available for non-admins need "admin" "sm_help".
Since sm_help can be executed by everyone (dunno if there is a better cvar).

So for your question: I don't understand what you mean with "a way to block out 1 & 2 in the votes".
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz 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:03.


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