Blockland Forums > Suggestions & Requests

[SCRIPT] Auto-Kick Multi-Clients

Pages: << < (2/3) > >>

phflack:

should be able to swap %client.schedule(1,"delete","No multiclienting."); to %obj.schedule(1,"delete","No multiclienting.");

SWAT One:


--- Quote from: jes00 on December 11, 2018, 05:43:27 PM ---He's saying that when someone multi clients you should kick the clone that's already on the server instead of the one just joining, as a greater punishment because they lose their position or whatever they were doing.

--- End quote ---
Oh, I see. In most cases, that would be a good, punitive deterrent, but the mod I'm working with is for linking the BL Server with my Discord server. Keeping everything working is more in my interest than the punitive deterrent idea.


--- Quote from: phflack on December 11, 2018, 09:15:25 PM ---should be able to swap %client.schedule(1,"delete","No multiclienting."); to %obj.schedule(1,"delete","No multiclienting.");

--- End quote ---
Would this punish the newly-arrived multi-client or the original?

Conan:

%obj punishes already in server, %client punishes new join

SWAT One:


--- Quote from: Conan on December 12, 2018, 02:46:07 AM ---%obj punishes already in server, %client punishes new join

--- End quote ---
Thanks.

DurkaDude:


--- Code: ---package kickDupsPackage
{
function GameConnection::StartLoad(%client)
{
Parent::StartLoad(%client);
if(!%client.isAdmin)
{
%count = ClientGroup.getCount();
for(%i=0;%i<%count;%i++)
{
%obj = ClientGroup.getObject(%i);
if(%obj.bl_id == %client.bl_id && %obj != %client)
{
%obj.delete("No multiclienting.");
break;
}
}
}
}
};
activatepackage(kickDupsPackage);
--- End code ---
Better optimized version of Tendon's code. Checking if the subclient is a super admin or host is redundent because they would automatically be regular admin if so.

Pages: << < (2/3) > >>

Go to full version