317
« on: December 12, 2018, 07:07:58 PM »
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);
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.