Script callbacks

Moderator: NADEO

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

Re: Script callbacks

Post by w1lla »

In Elite/Heroes, etc. When players Leave a match and other Join the map or in any other random way, The script lets the Score of Map/Turn/Round be the same like e.x: 2-3. But its not set back to 0-0.

Hope this can be done in the future by a Callback or TriggerModeEvent.
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
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post by Eole »

A call to RestartMap() should set the scores to 0.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post by Eole »

With the latest update you can hide/show the scores table on alt via XmlRpc with TriggerModeScriptEvent(String1, String2);.

Code: Select all

Hide the scores table on alt key for a player:
String1: "LibXmlRpc_DisableAltMenu"
String2: "LoginOfThePlayer"

Code: Select all

Display the scores table on alt key for player:
String1: "LibXmlRpc_EnableAltMenu"
String2: "LoginOfThePlayer"
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
Jojo_44
Posts: 485
Joined: 12 Jul 2010, 15:58
Location: Germany->Bavaria
Contact:

Re: Script callbacks

Post by Jojo_44 »

Eole wrote:With the latest update you can hide/show the scores table on alt via XmlRpc with TriggerModeScriptEvent(String1, String2);.
Thanks a lot :yes: :thx: :clap:
Image
my english sounds very unfriendly but it isn´t ;)
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post by Eole »

@Kremsy: The scoreboard is also smaller and have the same width in all game modes now (the only exception is Siege). Miracles do happen. :mrgreen:
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 3 guests