Prevent certain votes for regular users

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: kremsy, steeffeen, Jocy, Wabbitface, NADEO

Post Reply
Pleinair
Posts: 2
Joined: 24 Apr 2019, 21:52

Prevent certain votes for regular users

Post by Pleinair » 24 Apr 2019, 21:57

Hello,

I would like to prevent some votes in the server for non-admins, sometimes I go on the server and I see that someone has voted to remove the time limit (-1) and I always have to check that noone has messed with the settings.

How can I allow/forbid each vote based on the authorization level ?

Thanks a lot

ranig
Posts: 36
Joined: 27 May 2017, 01:07

Re: Prevent certain votes for regular users

Post by ranig » 30 Apr 2019, 12:13

Have you tried the Custom votes plugin? I am not sure but it might do what you want to do...
Your Trackmania resource for Nascar racing http://www.tm-nascar.com

Pleinair
Posts: 2
Joined: 24 Apr 2019, 21:52

Re: Prevent certain votes for regular users

Post by Pleinair » 04 May 2019, 18:43

It does not work unfortunately.

What I'm trying to do is to remove the right for non-admins to change the time limit on the map: Every other day I join the server and I see that the time limit has been removed and I'm the only admin on the server. On the logs of the server I see that someone voted to set time limit as X.

What I would like to do is to prevent anyone from changing the time limit on the server (disabling the votes). And if possible, identifying who votes for this.

User avatar
Miss
Posts: 1921
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: Prevent certain votes for regular users

Post by Miss » 04 May 2019, 21:10

Check the dedicated config, you should technically be able to disable votes for setting the time limit using "callvote_ratios". I think you're looking for the command "SetModeScriptSettings", but I'm not 100% sure.
1070 GTX, Ryzen 3700X, 16GB RAM, Windows 10
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream on Twitch and tweet on Twitter.

User avatar
w1lla
Posts: 2373
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Prevent certain votes for regular users

Post by w1lla » 05 May 2019, 07:07

Hi,

try something like this but this was coded for manialive:

https://github.com/w1lla/ShootmaniaElit ... e.php#L557 to activate Callvotes.

to deactivate them:

https://github.com/w1lla/ShootmaniaElit ... e.php#L564

haven't tested them properly but you also might need to convert them to maniacontrol, but i believe its a combination of both as Miss described.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs

ranig
Posts: 36
Joined: 27 May 2017, 01:07

Re: Prevent certain votes for regular users

Post by ranig » 19 May 2019, 17:11

In game, open the admin settings, choose the tab "Vote Ratios" and put the "Change Script Settings and Commands" to -1. Should do the trick.
Your Trackmania resource for Nascar racing http://www.tm-nascar.com

Post Reply

Return to “ManiaControl”

Who is online

Users browsing this forum: No registered users and 1 guest