Prevent certain votes for regular users

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

Moderators: Wabbitface, Jocy, steeffeen, NADEO

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

Prevent certain votes for regular users

Post by Pleinair »

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: 71
Joined: 27 May 2017, 01:07

Re: Prevent certain votes for regular users

Post by ranig »

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 »

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: 2151
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: Prevent certain votes for regular users

Post by Miss »

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.
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Prevent certain votes for regular users

Post by w1lla »

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: 71
Joined: 27 May 2017, 01:07

Re: Prevent certain votes for regular users

Post by ranig »

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 2 guests