2 Questions regarding text display

UASECO is a fork of the XAseco2/1.03 controller for Trackmania and has been overhauled to support the Modescript Gamemodes of Trackmania².

Moderators: undef.de, NADEO

Post Reply
User avatar
Drexyz
Posts: 3
Joined: 27 Apr 2019, 18:22

2 Questions regarding text display

Post by Drexyz » 27 Apr 2019, 18:27

Hello,

1) When an unranked player joins my server it says New Player: I would like that to just say Player:. Can I change that and where?

2)When a player types a message in the chat it displays as [displaynamehere]:message I would like to get rid of those [ ] backets. Can I change that and where?


I've been looking into it for a while and cannot find it so I am hoping any of you can help me out :)

Thank you! :thumbsup:

User avatar
undef.de
Posts: 1992
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: 2 Questions regarding text display

Post by undef.de » 27 Apr 2019, 21:19

1.) "New Player" is at line 147 and 152 in plugin.welcome_center.php

2.) Well... I'm not sure now, but I think you can't do that. They are added from the dedicated server (if I remember right).
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.

User avatar
Drexyz
Posts: 3
Joined: 27 Apr 2019, 18:22

Re: 2 Questions regarding text display

Post by Drexyz » 27 Apr 2019, 22:23

undef wrote:
27 Apr 2019, 21:19
1.) "New Player" is at line 147 and 152 in plugin.welcome_center.php

2.) Well... I'm not sure now, but I think you can't do that. They are added from the dedicated server (if I remember right).
Thank you! 1.) :thumbsup: :1010
2.) Still haven't found this one if it happens to be possible let me know would be cool :D

User avatar
jonthekiller
Translator
Translator
Posts: 4681
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: 2 Questions regarding text display

Post by jonthekiller » 01 May 2019, 09:20

It's possible for the 2) but it requires to override the Chat. I have done it for ManiaControl: https://github.com/jonthekiller/ManiaCo ... Plugin.php

Important step is to enable to Manual Routing and after use the controller to manage the chat (can slow the controller if flood): https://doc.maniaplanet.com/dedicated-s ... pc-methods
ChatEnableManualRouting (boolean,boolean) boolean The chat messages are no longer dispatched to the players, they only go to the rpc callback and the controller has to manually forward them. The second (optional) parameter allows all messages from the server to be automatically forwarded. Only available to Admin.
After I use this function:

Code: Select all

$this->maniaControl->getClient()->chatSendServerMessage('$z[' . $player->getEscapedNickname() . '$z] ' . $args[2] . '$z');
So now need to convert this into UASECO ;)
Image

Post Reply

Return to “UASECO”

Who is online

Users browsing this forum: No registered users and 1 guest