Got two other problems (i've post my cfg, maybe i made a mistake while creating it):
- First people who are not admin or in the reserved slot list (adminsimple.cfg (i've even test with no flag just the name in the list : "STEAM_0:1:2xxxxxx" "" /username) can't launch votekick voteban or votedrug, but they can launch every other vote.
- Secondly for my alltalk vote, i probably made a mistake, because i don't have a second vote after 4people enter votealltalk it's immediatly activated.
Code:
"Votes"
{
"voteban"
{
"title" "Ban #1 for 30 minutes?"
"type" "chat"
"command" "sm_ban #1 30 \"Banned by vote.\""
"percent" "51"
"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 \"Kicked by vote.\""
"percent" "60"
"trigger"
{
"command" "votekick"
"notice" "%u voted to kick #1"
"percent" "51"
"count" "4"
}
"params"
{
"1" "player"
}
}
"votealltalk"
{
"title" "Turn alltalk #1?"
"type" "chat"
"command" "sv_alltalk #1"
"percent" "51"
"trigger"
{
"command" "votealltalk"
"notice" "%u wants to turn alltalk #1"
"percent" "51"
}
"params"
{
"1" "onoff"
}
}
"votemap"
{
"title" "Change map to #1?"
"type" "chat"
"command" "changelevel #1"
"percent" "51"
"trigger"
{
"command" "votemap"
"notice" "%u wants to change the map to #1"
"delay" "300"
"percent" "51"
"count" "4"
}
"params"
{
"1" "mapcycle"
}
}
"votedrug"
{
"title" "Drug #1?"
"type" "chat"
"command" "sm_drug #1 \"Drugged by vote.\""
"percent" "51"
"trigger"
{
"command" "votedrug"
"notice" "%u voted to drug #1"
"percent" "51"
"count" "4"
}
"params"
{
"1" "player"
}
}
"scrambleteams"
{
"title" "Scramble teams?"
"type" "confirm"
"percent" "51"
"votes" "4"
"command" "mp_scrambleteams 1"
"trigger"
{
"command" "votescramble"
"notice" "%u wants to scramble teams."
"percent" "51"
"count" "4"
}
}
"votesetnext"
{
"title" "Change nextmap to #1?"
"type" "chat"
"command" "sm_setnextmap #1"
"percent" "51"
"trigger"
{
"command" "votenextmap"
"notice" "%u wants to change the nextmap to #1"
"percent" "51"
"count" "4"
}
"params"
{
"1" "mapcycle"
}
}
"gonext"
{
"title" "Go to the next map?"
"type" "confirm"
"percent" "51"
"votes" "4"
"command" "sm_change2nextmap"
"trigger"
{
"command" "gonext"
"notice" "%u wants to change to the next map."
"percent" "51"
"count" "4"
}
}
}