Quote:
Originally Posted by Ska
Explain please how to get voteban, votekick, voteslay, votemute and other similar to work for simple players. I have only playervotes.vote.cfg in customvotes folder.
for example thats my voteban and votekick part of playervotes.vote.cfg
Code:
"voteban"
{
"title" "Ban #1 for 30 minutes?"
"type" "chat"
"command" "sm_ban #1 30 \"Banned with voteban.\""
"trigger"
{
"command" "voteban"
"notice" "%u voted to ban #1"
"percent" "70"
"count" "4"
}
"params"
{
"1" "player"
}
}
"votekick"
{
"title" "Kick #1?"
"type" "chat"
"command" "sm_kick #1 \"Kiked by votekick.\""
"trigger"
{
"command" "votekick"
"notice" "%u voted to kick #1"
"percent" "70"
"count" "4"
}
"params"
{
"1" "player"
}
}
When choosing name from list of players SM says "No matching client was found"
|
Does that method bring up the menu for everyone voting, or does everyone have to type in the name themselves? I use nearly the same vote, except I use
instead of
Doing it that way it brings up the menu with the player list for the person who initiates the ban, and all the other players just get a "ban #1? Yes No" menu.
Also the actual command to be executed on mine is written as
Code:
"cmd" "sm_ban #1 30 \"Banned by vote.\""
not "command", since that is used again in the parameters section. Not sure if that's a problem or not.
Here's my voteban, kick and mute votes:
Code:
"voteban"
{
"title" "Ban #1 for 30 minutes?"
"type" "confirm"
"cmd" "sm_ban #1 30 \"Banned by vote.\""
"percent" "75"
"count" "3"
"trigger"
{
"command" "voteban"
"notice" "%u voted to ban #1"
}
"params"
{
"1" "player"
}
}
"votekick"
{
"title" "Kick #1?"
"type" "confirm"
"cmd" "sm_kick #1 \"Kicked by vote.\""
"percent" "70"
"count" "3"
"trigger"
{
"command" "votekick"
"notice" "%u voted to kick #1"
}
"params"
{
"1" "player"
}
}
"votemute"
{
"title" "Mute #1?"
"type" "confirm"
"cmd" "sm_mute #1 \"Muted by vote.\""
"percent" "80"
"count" "4"
"trigger"
{
"command" "votemute"
"notice" "%u voted to mute #1"
}
"params"
{
"1" "player"
}
}