You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in TM2020 a new callback is introduced for using pick and Ban
Callback return:
pickban_complete = Callback(
call='Script.PickBan.Complete',
namespace='trackmania',
code='pickban_complete',
target=handle_generic
)
Code to set it up:
Works only in Team GameModes:
pickbandata = '{"steps":[{"team":1,"action":"ban"},{"team":1,"action":"pick"},{"team":2,"action":"pick"},{"team":3,"action":"pick"},{"team":4,"action":"pick"},{"team":5,"action":"pick"}],"stepDuration":60000,"resultDuration":10000}'
await self.instance.gbx.script('PickBan.Start', pickbandata, encode_json=False, response_id=False),
await self.instance.chat('$ff0Admin $fff{}$z$s$ff0 tried to do a pickban with following data: {}.'.format(
player.nickname,pickbandata)
)```
The text was updated successfully, but these errors were encountered:
Hi, in TM2020 a new callback is introduced for using pick and Ban
Callback return:
pickban_complete = Callback(
call='Script.PickBan.Complete',
namespace='trackmania',
code='pickban_complete',
target=handle_generic
)
Code to set it up:
Works only in Team GameModes:
The text was updated successfully, but these errors were encountered: