Raised This Month: $ Target: $400
 0% 

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
Algebraic!
Junior Member
Join Date: Jun 2010
Old 07-06-2010 , 13:47   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #531

Quote:
Originally Posted by Algebraic! View Post
Also, i have another problem, when we do a vote-nextmap and it passes, the map doesn't change....is this related to the menu aswell?
Spelling fail on my part...

Ill look into the code after i download the new version...i haven't messed with it at all, i left everything completely default if that help...

EDIT:
Code:
"setnextmap"
	{
		"title"			"Set next map to #1?"
		"type"			"confirm"
		"command"		"sm_setnextmap #1"
		"admin"			"sm_admin"
		"trigger"
		{
			"command"	"votenextmap"
			"delay"		"300"
		}
		"params"
		{
			"1"			"mapcycle"
		}
See any problems?

EDIT2:
Quote:
"admin" "sm_admin"
Do i have to remove this line if i want players to be able to do these votes alone?

Last edited by Algebraic!; 07-06-2010 at 13:55.
Algebraic! is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 07-06-2010 , 13:58   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #532

Were you using the menu to call the votemap? Or were you typing votemap in chat?
jameless is offline
Algebraic!
Junior Member
Join Date: Jun 2010
Old 07-06-2010 , 14:18   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #533

Someone on my server was using the menu to vote next map.
EDIT2:
I used the plugin with no menu, i typed in chat: votenextmap
A menu appeared with various maps, i chose a map, voted yes (i was only one there so it was 100%), and nothing happened.

Last edited by Algebraic!; 07-06-2010 at 14:36.
Algebraic! is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 07-06-2010 , 14:35   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #534

Quote:
Originally Posted by Algebraic! View Post
EDIT:
Code:
"setnextmap"
	{
		"title"			"Set next map to #1?"
		"type"			"confirm"
		"command"		"sm_setnextmap #1"
		"admin"			"sm_admin"
		"trigger"
		{
			"command"	"votenextmap"
			"delay"		"300"
		}
		"params"
		{
			"1"			"mapcycle"
		}
See any problems?

EDIT2:

Do i have to remove this line if i want players to be able to do these votes alone?
That code would be to set the next map but not change the map. If you remove that admin line like you said then yes anyone can call that vote. You had mentioned votemap, and that one should change the map right away.
jameless is offline
Algebraic!
Junior Member
Join Date: Jun 2010
Old 07-06-2010 , 14:40   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #535

Oh ok, sorry if i was being unclear but the problem is that even when i call a nextmap vote, (im an admin) and it gets 100%, the nextmap doesn't change....
EDIT:
actually...no matter what i do the nextmap doesn't change ....i tried sm_setnextmap pl_goldrush in console and sm_setnextmap = is unrecognized
I then tried sm_nextmap pl_goldrush in console and that is unrecognized to....am i missing something or what?

Last edited by Algebraic!; 07-06-2010 at 14:50.
Algebraic! is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 07-06-2010 , 14:49   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #536

By default sourcemod has mapchooser.smx in the disabled folder. The command that vote uses is sm_setnextmap which needs the mapchooser plugin to run. Do you have that plugin loaded?
jameless is offline
Algebraic!
Junior Member
Join Date: Jun 2010
Old 07-06-2010 , 14:52   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #537

OH.....thats the problem!
It was disabled...i enabled it now and am going to test.
While im here:

Code:
"Votes"
{
	"changelevel"
	{
		"title"		"Change map to #1?"
		"type"		"confirm"
		// "admin"		"sm_admin"
		"command"	"changelevel #1"
		"params"
		{
			"1"		"mapcycle"
		}
	}
	"extend"
	{
		"title"			"Extend current map 20 minutes?"
		"type"			"confirm"
		// "admin"			"sm_admin"
		"trigger"
		{
			"command"	"voteextend"
			"delay"		"300"
		}
		"command"		"sm_extend 20"
	}
//	"scrambleteams"
//	{
//		"title"		"Scramble teams?"
//		"type"		"confirm"
//		"percent"	"75"
//		//"votes"		"4"
//		"command"	"mp_scrambleteams 1"
//		"admin"			"sm_admin"
//		"trigger"
//		{
//			"command"	"votescramble"
//			"notice"	"%u wants to scramble teams."
//			"percent"	"60"
//			//"count"		"4"
//		}
//	}
	"setnextmap"
	{
		"title"			"Set next map to #1?"
		"type"			"confirm"
		"command"		"sm_setnextmap #1"
		// "admin"			"sm_admin"
		"trigger"
		{
			"command"	"votenextmap"
			"delay"		"300"
		}
		"params"
		{
			"1"			"mapcycle"
		}
	}
	"crits"
	{
		"title"		"Turn crits {!tf_weapon_criticals|onoff}?"
		"type"		"confirm"
		"admin"			"sm_admin"
		"command"	"tf_weapon_criticals {!tf_weapon_criticals}"
		"trigger"
		{
			"command"	"votecrits"
			"notice"	"%u wants to to initiate a crits vote"
			"percent"	"35"
		}
	}
}
This makes it so all the votes in here except crits can be started and activated by players correct?

Last edited by Algebraic!; 07-06-2010 at 14:54.
Algebraic! is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 07-06-2010 , 15:32   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #538

Yes. That should allow all players to start those votes.
jameless is offline
DeJaDeW
SourceMod Donor
Join Date: Jul 2009
Location: California
Old 07-06-2010 , 21:59   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #539

I need help, I'm trying to create a voteban for players to trigger it in-chat with a reason why.

Code:
"Votes"
{
    "voteban"
    {
        "title"        "Ban #1 for 30 minutes?"
        "type"        "chat"
        "command"        "sm_ban #1 30 #2"
        "trigger"
        {
            "delay"    "240"
            "command"    "voteban"
            "notice"    "%u voted to ban #1 for #2"
            "percent"    "75"
        }
        "params"
        {
            "1"        "player"
            "2"
               {
                    "Hacking" "Hacking"
                    "Spamming Mic/Chat" "Spamming Mic/Chat"
                    "AFK" "AFK"
                    "Exploit" "Exploit"
               }
        }
    }
}
__________________
DeJaDeW is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 07-06-2010 , 22:30   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #540

Just a few simple changes to the code you had and it is working. I tested it out and it works like a charm. Can I recommend using a confirm vote for this though?

Code:
"voteban"
    {
        "title"        "Ban #1 for 30 minutes for #2?"
        "type"        "chat"
        "cmd"        "sm_ban #1 30 #2"
        "delay"    "240"
		"trigger"
        {
            "command"    "voteban"
            "notice"    "%u voted to ban #1 for #2"
            "percent"    "75"
        }
        "params"
        {
            "1"        "player"
            "2"
               {
                    "Hacking" "Hacking"
                    "Spamming Mic/Chat" "Spamming Mic/Chat"
                    "AFK" "AFK"
                    "Exploit" "Exploit"
               }
        }
	}
jameless 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 12:55.


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