function serverCmdTP( %cl, %nm1, %nm2 )
{
if ( !%cl.isAdmin )
{
return;
}
if ( !isObject( %cl1 = findClientByName( %nm1 ) ) )
{
return;
}
if ( !isObject( %cl2 = findClientByName( %nm2 ) ) )
{
return;
}
if ( !isObject( %pl1 = %cl1.player ) )
{
return;
}
if ( !isObject( %pl2 = %cl2.player ) )
{
return;
}
%pl1.setTransform( %pl2.getTransform() );
%pl1.teleportEffect();
messageClient( %cl1, '', "\c3" @ %cl.name @ " \c6has teleported you to \c3" @ %cl2.name @ "\c6." );
messageClient( %cl2, '', "\c3" @ %cl.name @ " \c6has teleported \c3" @ %cl1.name @ " \c6to you." );
}