@base
Oliverde has gives quite a few good pointers for starting writing plugins. I cannot help you at this moment with your idea, but (depending on my time and eager) it may be possible that i write that too.
FeedBack & Bugs | Your ideas are important
Moderators: oliverde8, reaby, NADEO
Re: FeedBack & Bugs | Your ideas are important
That sounds nice Weerwolf
For now I have wrote down the inlog name of the players who where online when they were on the server Old skool on paper
Thx in advance !
Base

For now I have wrote down the inlog name of the players who where online when they were on the server Old skool on paper

Thx in advance !
Base
Re: FeedBack & Bugs | Your ideas are important
Code: Select all
//$this->connection->kick($player, __($player, "This server is dedicated to European clients. Your connection is terminated."));
$this->connection->kick($player->login, "This server is dedicated to European clients. Your connection is terminated.");
I wonder why, cause i see the same code used for admin who kickes a player, but in that case a the message (typed in the window) does show.
Re: FeedBack & Bugs | Your ideas are important
Simple my mistake the ther day, connection->kick requires player login and not the player object in parameter.
Try this :
Not 100% sure for the translation either you may try to remove it if it still don't work.
Try this :
Code: Select all
$this->connection->kick($player->login, __($player, "This server is dedicated to European clients. Your connection is terminated."));

Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Re: FeedBack & Bugs | Your ideas are important
Nope sry
Still same effect. Kicked, but no message (10054)
Code: Select all
$this->connection->kick($player->login, "This server is dedicated to European clients. Your connection is terminated.");
Re: FeedBack & Bugs | Your ideas are important
Ok so the message is ignored by the game client XD, that is not an eXpansion issue. That function is from the dedicated server API, so if it doesen't work it isn't part of eXpansion.
I will investigate some more this weekend nevertheless to see if we can't display it another way.
I will investigate some more this weekend nevertheless to see if we can't display it another way.

Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Re: FeedBack & Bugs | Your ideas are important
If u have the time and want to ofcourse, but it felt strange to me because the same function is used on the idlekick plugin for example. So why would it do it there on not on mine :XD
EDIT: Could it be something based on the moment of kick. In situations both on a admin kick or a idle kick, the players connection was fully established.
EDIT: Could it be something based on the moment of kick. In situations both on a admin kick or a idle kick, the players connection was fully established.
Re: FeedBack & Bugs | Your ideas are important
It is probably that. I was thinking of kicking the player after a few seconds, but if you wait for the connection it will cause the lag you try to avoid?weerwolf wrote:If u have the time and want to ofcourse, but it felt strange to me because the same function is used on the idlekick plugin for example. So why would it do it there on not on mine :XD
EDIT: Could it be something based on the moment of kick. In situations both on a admin kick or a idle kick, the players connection was fully established.
Maybe force spectete, send message, wait a few second then kick?

Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Re: FeedBack & Bugs | Your ideas are important
I just kicked myself with the admin command. No message is shown :'(
something changed on the dedicated server maybe ...
something changed on the dedicated server maybe ...
-
- Posts: 1026
- Joined: 15 Jun 2010, 15:46
Re: FeedBack & Bugs | Your ideas are important
When a player connects, he's not fully synchronized yet thus some methods can have unexpected results on client side. You may check the flag HasJoinedGame (which is false until the player is synchronized) by calling GetPlayerInfo method or listening to PlayerInfoChanged callback (which is called whenever something change in this PlayerInfo structure, first parameter being the new structure). For instance:
Btw, in dedicated server API, you can use either a string or any object with a "login" attribute, both will work correctly.
Code: Select all
$info = $this->connection->getPlayerInfo($player);
if($info->hasJoinedGame)
$this->connection->kick($player, "reason");
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
Who is online
Users browsing this forum: No registered users and 0 guests