PDA

View Full Version : Timed Kicks?


Lazzy
16-04-2007, 13:18
Hi all,

We run a server for a gaming clan. We have a lobby where all members go when they first join. To save us problems with unregistered and previously banned players, we would like to implement a autokick for people who do not move from the lobby within a certain period - is this possible?

We do not want a straight-forward kick as we have many friends who visit, who are welcomed and moved to another channel. 2 minutes would allow us time toeither register the visitor or move them to a channel where they can talk.

Would appreciate your advice.

Many thanks

Lazzy

Thomas
16-04-2007, 13:37
It's possible with a 3rd Party Script.

So you can modify the idlekick feature of the TS2 PerlMOD.

Like this: if (player->idletime() > allowed_idletime) && (player->parentchan() == "Disliked_Chan") {
player->kick();
}


(I don't know the correct syntax used in the PerlMOD.)

Lazzy
16-04-2007, 13:49
Cheers for the quick respones, unfortunately we don';t have that good a knowledge of the programme. Where would this code need to be inserted?

Reedy Boy
16-04-2007, 19:03
Cheers for the quick respones, unfortunately we don';t have that good a knowledge of the programme. Where would this code need to be inserted?


# move idlers
if($config{"MOVE-IDLERS"}{"Enabled"} && !$protected) {
if($player->{idletime} >= $settings{moveidler}{idletime} && !$player->{pprivs}->{sticky} && $player->{c_id} != $settings{moveidler}{channel}->{id}) {
$player->move($settings{moveidler}{channel}->{id});
&log($log, "[MOVE-IDLERS] Moved player ".$player->{nick}." after ".formatTime($player->{idletime}));
}
}

That is the move idlers, you could put it there...


# move idlers
if($config{"MOVE-IDLERS"}{"Enabled"} && !$protected)
{
if (player->idletime() > allowed_idletime) && (player->parentchan() == "Disliked_Chan")
{
player->kick();
}
}

Thomas
16-04-2007, 19:28
But this will only move the player! :p

You need to add it here:
# kick idlers
if($config{"KICK-IDLERS"}{"Enabled"}) {
my $kicked = $server->kickIdlers($settings{kickidler}{idletime},$setting s{kickidler}{targets},$settings{kickidler}{reason} );
my $x = "player";
$x = "players" if($kicked > 1);
&log($log, "[KICK-IDLERS] Kicked ".$kicked." idle ".$x." from server") if($kicked);
}
(ll. 221 - 227; Version 0.9.16 (http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/gid,51/Itemid,70/))

Reedy Boy
20-04-2007, 20:04
But this will only move the player! :p

You need to add it here:
# kick idlers
if($config{"KICK-IDLERS"}{"Enabled"}) {
my $kicked = $server->kickIdlers($settings{kickidler}{idletime},$setting s{kickidler}{targets},$settings{kickidler}{reason} );
my $x = "player";
$x = "players" if($kicked > 1);
&log($log, "[KICK-IDLERS] Kicked ".$kicked." idle ".$x." from server") if($kicked);
}
(ll. 221 - 227; Version 0.9.16 (http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/gid,51/Itemid,70/))

Pah

;)

:p