I mutilated it to get it to run without crashing the server. After redoing the curley braces, I got it to run. However, it doesn't spawn where the person needs to be.
package jail {
function GameConnection::CreatePlayer(%this, %spawnpoint){
Parent::createPlayer(%this, %spawnpoint);
if(%this.intimeout){
%this.player.setTransform($Pref::Server::brickJailSpawnData);
}
}
function serverCmdsetjail(%client){
if(%client.issuperadmin){
$Pref::Server::jailbrick=%client.player.getTransform();
}
}
function serverCmdGoToJail(%client,%victim){
if(%client.isSuperAdmin){
for(%i = 0; %i < ClientGroup.getCount(); %i++){
%cl = ClientGroup.getObject(%i);
if(%cl.name $= %victim && isObject(%cl.player) || %cl.bl_id $= %victim && isObject(%cl.player)){
if(!%cl.intimeout){
%cl.intimeout = 1;
%cl.kill();
}
}
else
{
%cl.intimeout=0;
}
}
}
}
};
activatepackage(jail);